]>
Commit | Line | Data |
---|---|---|
2bfed17d | 1 | INCLUDE ../common/ldscript.common\r |
8652988d | 2 | \r |
2bfed17d | 3 | ENTRY(flashstart)\r |
6658905f | 4 | SECTIONS\r |
5 | {\r | |
8652988d | 6 | . = 0;\r |
7 | \r | |
8 | bootphase1 : {\r | |
9 | *(.startup) \r | |
10 | *(.bootphase1)\r | |
8a6aec16 | 11 | \r |
12 | /* It seems to be impossible to flush align a section at the\r | |
13 | end of a memory segment. Instead, we'll put the version_information\r | |
14 | wherever the linker wants it, and then put a pointer to the start\r | |
15 | of the version information at the end of the section.\r | |
16 | -- Henryk Plötz <henryk@ploetzli.ch> 2009-08-28 */\r | |
17 | \r | |
18 | _version_information_start = .;\r | |
19 | *(.version_information);\r | |
20 | \r | |
21 | . = LENGTH(bootphase1) - 0x4; /* Skip ahead to the end */\r | |
22 | LONG(_version_information_start)\r | |
8652988d | 23 | } >bootphase1\r |
24 | \r | |
25 | bootphase2 : {\r | |
26 | __bootphase2_start__ = .;\r | |
27 | *(.startphase2)\r | |
28 | *(.text)\r | |
29 | *(.glue_7)\r | |
fb6e5aa8 | 30 | *(.glue_7t)\r |
8652988d | 31 | *(.rodata)\r |
32 | *(.data)\r | |
33 | . = ALIGN( 32 / 8 );\r | |
34 | __bootphase2_end__ = .;\r | |
35 | } >ram AT>bootphase2\r | |
36 | \r | |
37 | .bss : {\r | |
38 | __bss_start__ = .; \r | |
39 | *(.bss)\r | |
40 | } >ram\r | |
41 | \r | |
42 | . = ALIGN( 32 / 8 );\r | |
6658905f | 43 | __bss_end__ = .;\r |
44 | }\r |