diff options
Diffstat (limited to 'firmware/target/coldfire/app.lds')
-rw-r--r-- | firmware/target/coldfire/app.lds | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/firmware/target/coldfire/app.lds b/firmware/target/coldfire/app.lds index 5364157fdd..457c71c97c 100644 --- a/firmware/target/coldfire/app.lds +++ b/firmware/target/coldfire/app.lds | |||
@@ -20,6 +20,11 @@ STARTUP(target/coldfire/crt0.o) | |||
20 | 20 | ||
21 | /* End of the audio buffer, where the codec buffer starts */ | 21 | /* End of the audio buffer, where the codec buffer starts */ |
22 | #define ENDAUDIOADDR (DRAMORIG + DRAMSIZE) | 22 | #define ENDAUDIOADDR (DRAMORIG + DRAMSIZE) |
23 | #define CODECORIG ENDAUDIOADDR | ||
24 | |||
25 | /* .init is copied to codec buffer */ | ||
26 | #define INITORIG CODECORIG | ||
27 | #define INITSIZE CODECSIZE | ||
23 | 28 | ||
24 | /* Where the codec buffer ends, and the plugin buffer starts */ | 29 | /* Where the codec buffer ends, and the plugin buffer starts */ |
25 | #define ENDADDR (ENDAUDIOADDR + CODECSIZE) | 30 | #define ENDADDR (ENDAUDIOADDR + CODECSIZE) |
@@ -28,6 +33,7 @@ MEMORY | |||
28 | { | 33 | { |
29 | DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE | 34 | DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE |
30 | IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE | 35 | IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE |
36 | INIT : ORIGIN = INITORIG, LENGTH = INITSIZE | ||
31 | } | 37 | } |
32 | 38 | ||
33 | SECTIONS | 39 | SECTIONS |
@@ -45,7 +51,7 @@ SECTIONS | |||
45 | .text : | 51 | .text : |
46 | { | 52 | { |
47 | . = ALIGN(0x200); | 53 | . = ALIGN(0x200); |
48 | *(.init.text) | 54 | KEEP(*(.startup*)); |
49 | *(.text*) | 55 | *(.text*) |
50 | . = ALIGN(0x4); | 56 | . = ALIGN(0x4); |
51 | } > DRAM | 57 | } > DRAM |
@@ -90,6 +96,15 @@ SECTIONS | |||
90 | _iramcopy = LOADADDR(.iram); | 96 | _iramcopy = LOADADDR(.iram); |
91 | _noloaddram = LOADADDR(.iram); | 97 | _noloaddram = LOADADDR(.iram); |
92 | 98 | ||
99 | .init : | ||
100 | { | ||
101 | _initstart = .; | ||
102 | *(.init*) | ||
103 | *(.initdata*) | ||
104 | _initend = .; | ||
105 | } > INIT AT > DRAM | ||
106 | _initcopy = LOADADDR(.init); | ||
107 | |||
93 | .ibss (NOLOAD) : | 108 | .ibss (NOLOAD) : |
94 | { | 109 | { |
95 | _iedata = .; | 110 | _iedata = .; |