openpcd/openpicc/config/atmel-rom.ld @ master
1 | 633c646a | henryk | MEMORY |
---|---|---|---|
2 | { |
||
3 | d88d1207 | henryk | boot : ORIGIN = 0x00100000, LENGTH = 0x200 |
4 | flash : ORIGIN = 0x00100200, LENGTH = 256K - 0x200 |
||
5 | vectors : ORIGIN = 0x00200000, LENGTH = 0x200 |
||
6 | ram : ORIGIN = 0x00200200, LENGTH = 64K - 0x200 |
||
7 | 633c646a | henryk | } |
8 | |||
9 | __stack_end__ = 0x00200000 + 64K - 4; |
||
10 | |||
11 | SECTIONS |
||
12 | { |
||
13 | . = 0; |
||
14 | 96e7b71e | meri | startup : { |
15 | *(.startup) |
||
16 | _startup_end = .; |
||
17 | } >boot |
||
18 | 633c646a | henryk | |
19 | prog : |
||
20 | { |
||
21 | *(.text) |
||
22 | *(.text.*) |
||
23 | *(.rodata) |
||
24 | *(.rodata*) |
||
25 | *(.glue_7) |
||
26 | *(.glue_7t) |
||
27 | } >flash |
||
28 | |||
29 | __end_of_text__ = .; |
||
30 | |||
31 | ab151a87 | henryk | .data : |
32 | { |
||
33 | __data_beg__ = .; |
||
34 | __data_beg_src__ = __end_of_text__; |
||
35 | *(.data) |
||
36 | *(.data.*) |
||
37 | *(.fastrun) |
||
38 | *(.ramfunc) |
||
39 | __data_end__ = .; |
||
40 | } >ram AT>flash |
||
41 | |||
42 | .bss : |
||
43 | { |
||
44 | __bss_beg__ = .; |
||
45 | *(.bss) |
||
46 | *(.bss.*) |
||
47 | } >ram |
||
48 | |||
49 | /* Align here to ensure that the .bss section occupies space up to |
||
50 | _end. Align after .bss to ensure correct alignment even if the |
||
51 | .bss section disappears because there are no input sections. */ |
||
52 | . = ALIGN(32 / 8); |
||
53 | 633c646a | henryk | } |
54 | ab151a87 | henryk | . = ALIGN(32 / 8); |
55 | _end = .; |
||
56 | _bss_end__ = . ; __bss_end__ = . ; __end__ = . ; |
||
57 | PROVIDE (end = .); |
||
58 |