diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/app.lds | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/firmware/app.lds b/firmware/app.lds index a2cefe1091..5397910666 100644 --- a/firmware/app.lds +++ b/firmware/app.lds | |||
@@ -18,88 +18,12 @@ INPUT(crt0.o) | |||
18 | 18 | ||
19 | MEMORY | 19 | MEMORY |
20 | { | 20 | { |
21 | #ifdef NEO_MEMORY | ||
22 | ROM : ORIGIN = 0x00020000, LENGTH = 0x1E0000 | ||
23 | SRAM : ORIGIN = 0x0C000000, LENGTH = 0x40000 | ||
24 | #else | ||
25 | DRAM : ORIGIN = ORIGADDR, LENGTH = DRAMSIZE | 21 | DRAM : ORIGIN = ORIGADDR, LENGTH = DRAMSIZE |
26 | #endif | ||
27 | IRAM : ORIGIN = 0x0f000000, LENGTH = 0x1000 | 22 | IRAM : ORIGIN = 0x0f000000, LENGTH = 0x1000 |
28 | } | 23 | } |
29 | 24 | ||
30 | SECTIONS | 25 | SECTIONS |
31 | { | 26 | { |
32 | #ifdef NEO_MEMORY | ||
33 | .bss : | ||
34 | { | ||
35 | _edata = .; | ||
36 | *(.bss) | ||
37 | *(COMMON) | ||
38 | _end = .; | ||
39 | } > SRAM | ||
40 | |||
41 | .text : | ||
42 | { | ||
43 | . = ALIGN(0x4); | ||
44 | *(.vectors); | ||
45 | . = ALIGN(0x200); | ||
46 | *(.init.text) | ||
47 | *(.text) | ||
48 | } > ROM | ||
49 | |||
50 | .rodata : | ||
51 | { | ||
52 | *(.rodata) | ||
53 | *(.rodata.str1.4) | ||
54 | . = ALIGN(0x4); | ||
55 | } > ROM | ||
56 | |||
57 | .data : AT ( LOADADDR(.romdata) ) | ||
58 | { | ||
59 | _datastart = .; | ||
60 | *(.data) | ||
61 | _dataend = .; | ||
62 | } > SRAM | ||
63 | |||
64 | .iram : AT ( _iramcopy ) | ||
65 | { | ||
66 | _iramstart = .; | ||
67 | *(.icode) | ||
68 | *(.idata) | ||
69 | _iramend = .; | ||
70 | } > IRAM | ||
71 | |||
72 | .romdata : | ||
73 | { | ||
74 | _datacopy = .; | ||
75 | . += SIZEOF(.data); | ||
76 | _iramcopy = .; | ||
77 | . += SIZEOF(.iram); | ||
78 | } > ROM | ||
79 | |||
80 | .stack : | ||
81 | { | ||
82 | _stackbegin = .; | ||
83 | *(.stack) | ||
84 | . += 0x1000; | ||
85 | _stackend = .; | ||
86 | } > SRAM | ||
87 | |||
88 | .mp3buf : | ||
89 | { | ||
90 | _mp3buffer = .; | ||
91 | } > SRAM | ||
92 | |||
93 | .mp3end 0x0C040000 - 0x300: | ||
94 | { | ||
95 | _mp3end = .; | ||
96 | } > SRAM | ||
97 | |||
98 | .plugin 0x0C040000: | ||
99 | { | ||
100 | _pluginbuf = .; | ||
101 | } > SRAM | ||
102 | #else | ||
103 | .vectors : | 27 | .vectors : |
104 | { | 28 | { |
105 | *(.resetvectors); | 29 | *(.resetvectors); |
@@ -176,6 +100,4 @@ SECTIONS | |||
176 | { | 100 | { |
177 | _pluginbuf = .; | 101 | _pluginbuf = .; |
178 | } | 102 | } |
179 | |||
180 | #endif | ||
181 | } | 103 | } |