summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2011-01-15 09:38:23 +0000
committerMichael Sevakis <jethead71@rockbox.org>2011-01-15 09:38:23 +0000
commitf74806e8bc9329baa5faf29cbfeb29eda93c7c32 (patch)
tree2d27693c1fea19777696c26d901e4aaddad8ae57
parent0647c9e1e77ccde4ef6c308282dbec5536afdf21 (diff)
downloadrockbox-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.lds69
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
3ENTRY(start) 5ENTRY(start)
4OUTPUT_FORMAT(elf32-littlearm) 6OUTPUT_FORMAT(elf32-littlearm)
5OUTPUT_ARCH(arm) 7OUTPUT_ARCH(arm)
@@ -135,3 +137,70 @@ SECTIONS
135 freebufferend = .; 137 freebufferend = .;
136 } 138 }
137} 139}
140
141#else /* !HAVE_BOOTLOADER_USB_MODE */
142ENTRY(start)
143OUTPUT_FORMAT(elf32-littlearm)
144OUTPUT_ARCH(arm)
145STARTUP(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
157MEMORY
158{
159 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
160 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
161}
162
163SECTIONS
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 */