+INCLUDE ../common/ldscript.common\r
+\r
+ENTRY(flashstart)\r
SECTIONS\r
{\r
- . = 0x00000000;\r
- .text : { obj/flash-reset.o(.text) *(.text) }\r
- .rodata : { *(.rodata) }\r
- . = 0x00200000;\r
- .data : { *(.data) }\r
- __bss_start__ = .;\r
- .bss : { *(.bss) }\r
+ . = 0;\r
+ \r
+ bootphase1 : {\r
+ *(.startup) \r
+ *(.bootphase1)\r
+ } >bootphase1\r
+ \r
+ bootphase2 : {\r
+ __bootphase2_start__ = .;\r
+ *(.startphase2)\r
+ *(.text)\r
+ *(.glue_7)\r
+ *(.glue_7t)\r
+ *(.rodata)\r
+ *(.data)\r
+ . = ALIGN( 32 / 8 );\r
+ __bootphase2_end__ = .;\r
+ } >ram AT>bootphase2\r
+ \r
+ .bss : {\r
+ __bss_start__ = .; \r
+ *(.bss)\r
+ } >ram\r
+ \r
+ . = ALIGN( 32 / 8 );\r
__bss_end__ = .;\r
}\r