diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2011-01-15 09:38:23 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2011-01-15 09:38:23 +0000 |
commit | f74806e8bc9329baa5faf29cbfeb29eda93c7c32 (patch) | |
tree | 2d27693c1fea19777696c26d901e4aaddad8ae57 | |
parent | 0647c9e1e77ccde4ef6c308282dbec5536afdf21 (diff) | |
download | rockbox-f74806e8bc9329baa5faf29cbfeb29eda93c7c32.tar.gz rockbox-f74806e8bc9329baa5faf29cbfeb29eda93c7c32.zip |
Oops...have to mind the boot.lds variation in /firmware/target/arm/philips by bootloader USB mode or not.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29057 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/philips/boot.lds | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/firmware/target/arm/philips/boot.lds b/firmware/target/arm/philips/boot.lds index 0ea31024bf..411d7b1df2 100644 --- a/firmware/target/arm/philips/boot.lds +++ b/firmware/target/arm/philips/boot.lds | |||
@@ -1,5 +1,7 @@ | |||
1 | #include "config.h" | 1 | #include "config.h" |
2 | 2 | ||
3 | /* Can't link all Philips ARM devices the same way at this time */ | ||
4 | #ifdef HAVE_BOOTLOADER_USB_MODE | ||
3 | ENTRY(start) | 5 | ENTRY(start) |
4 | OUTPUT_FORMAT(elf32-littlearm) | 6 | OUTPUT_FORMAT(elf32-littlearm) |
5 | OUTPUT_ARCH(arm) | 7 | OUTPUT_ARCH(arm) |
@@ -135,3 +137,70 @@ SECTIONS | |||
135 | freebufferend = .; | 137 | freebufferend = .; |
136 | } | 138 | } |
137 | } | 139 | } |
140 | |||
141 | #else /* !HAVE_BOOTLOADER_USB_MODE */ | ||
142 | ENTRY(start) | ||
143 | OUTPUT_FORMAT(elf32-littlearm) | ||
144 | OUTPUT_ARCH(arm) | ||
145 | STARTUP(target/arm/crt0-pp-bl.o) | ||
146 | |||
147 | #define DRAMSIZE (MEMORYSIZE * 0x100000) | ||
148 | |||
149 | #define DRAMORIG 0x10000000 | ||
150 | #ifndef IRAMORIG | ||
151 | #define IRAMORIG 0x40000000 | ||
152 | #endif | ||
153 | #define IRAMSIZE 0x20000 | ||
154 | #define FLASHORIG 0x001f0000 | ||
155 | #define FLASHSIZE 2M | ||
156 | |||
157 | MEMORY | ||
158 | { | ||
159 | DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE | ||
160 | IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE | ||
161 | } | ||
162 | |||
163 | SECTIONS | ||
164 | { | ||
165 | . = IRAMORIG; | ||
166 | |||
167 | .text : { | ||
168 | *(.init.text) | ||
169 | *(.text*) | ||
170 | *(.glue_7) | ||
171 | *(.glue_7t) | ||
172 | } > IRAM | ||
173 | |||
174 | .data : { | ||
175 | *(.icode) | ||
176 | *(.irodata) | ||
177 | *(.idata) | ||
178 | *(.data*) | ||
179 | *(.ncdata*) | ||
180 | *(.rodata*) | ||
181 | _dataend = . ; | ||
182 | } > IRAM | ||
183 | |||
184 | .stack (NOLOAD) : { | ||
185 | *(.stack) | ||
186 | _stackbegin = .; | ||
187 | stackbegin = .; | ||
188 | . += 0x2000; | ||
189 | _stackend = .; | ||
190 | stackend = .; | ||
191 | } > IRAM | ||
192 | |||
193 | /* The bss section is too large for IRAM - we just move it 16MB into the | ||
194 | DRAM */ | ||
195 | |||
196 | . = DRAMORIG; | ||
197 | .bss . + (16*1024*1024) (NOLOAD) : { | ||
198 | _edata = .; | ||
199 | *(.bss*); | ||
200 | *(.ibss); | ||
201 | *(COMMON) | ||
202 | *(.ncbss*); | ||
203 | _end = .; | ||
204 | } > DRAM | ||
205 | } | ||
206 | #endif /* HAVE_BOOTLOADER_USB_MODE */ | ||