Sylvain Munaut | 26bc465 | 2020-09-14 10:19:49 +0200 | [diff] [blame] | 1 | MEMORY |
2 | { | ||||
3 | SPRAM (xrw) : ORIGIN = 0x00020000, LENGTH = 0x10000 | ||||
4 | BRAM (xrw) : ORIGIN = 0x00000010, LENGTH = 0x03f0 | ||||
5 | } | ||||
6 | ENTRY(_start) | ||||
7 | SECTIONS { | ||||
8 | .text : | ||||
9 | { | ||||
10 | . = ALIGN(4); | ||||
11 | *(.text.start) | ||||
12 | *(.text) | ||||
13 | *(.text*) | ||||
14 | *(.rodata) | ||||
15 | *(.rodata*) | ||||
16 | *(.srodata) | ||||
17 | *(.srodata*) | ||||
18 | . = ALIGN(4); | ||||
19 | _etext = .; | ||||
20 | _sidata = _etext; | ||||
21 | } >SPRAM | ||||
22 | .data : AT ( _sidata ) | ||||
23 | { | ||||
24 | . = ALIGN(4); | ||||
25 | _sdata = .; | ||||
26 | _ram_start = .; | ||||
27 | . = ALIGN(4); | ||||
28 | *(.data) | ||||
29 | *(.data*) | ||||
30 | *(.sdata) | ||||
31 | *(.sdata*) | ||||
32 | . = ALIGN(4); | ||||
33 | _edata = .; | ||||
34 | } >SPRAM | ||||
35 | .bss : | ||||
36 | { | ||||
37 | . = ALIGN(4); | ||||
38 | _sbss = .; | ||||
39 | *(.bss) | ||||
40 | *(.bss*) | ||||
41 | *(.sbss) | ||||
42 | *(.sbss*) | ||||
43 | *(COMMON) | ||||
44 | . = ALIGN(4); | ||||
45 | _ebss = .; | ||||
46 | } >SPRAM | ||||
47 | .heap : | ||||
48 | { | ||||
49 | . = ALIGN(4); | ||||
50 | _heap_start = .; | ||||
51 | } >SPRAM | ||||
52 | } |