summaryrefslogtreecommitdiff
path: root/firmware/target/arm/philips/boot.lds
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/philips/boot.lds')
-rw-r--r--firmware/target/arm/philips/boot.lds67
1 files changed, 2 insertions, 65 deletions
diff --git a/firmware/target/arm/philips/boot.lds b/firmware/target/arm/philips/boot.lds
index 45a9c6efa8..5a6fa000ad 100644
--- a/firmware/target/arm/philips/boot.lds
+++ b/firmware/target/arm/philips/boot.lds
@@ -3,69 +3,6 @@
3/* Can't link all Philips ARM devices the same way at this time */ 3/* Can't link all Philips ARM devices the same way at this time */
4#ifdef HAVE_BOOTLOADER_USB_MODE 4#ifdef HAVE_BOOTLOADER_USB_MODE
5#include "../pp/boot-pp502x-bl-usb.lds" 5#include "../pp/boot-pp502x-bl-usb.lds"
6#else /* !HAVE_BOOTLOADER_USB_MODE */ 6#else
7ENTRY(start) 7#include "../pp/boot-pp.lds"
8OUTPUT_FORMAT(elf32-littlearm)
9OUTPUT_ARCH(arm)
10STARTUP(target/arm/pp/crt0-pp-bl.o)
11
12#define DRAMSIZE (MEMORYSIZE * 0x100000)
13
14#define DRAMORIG 0x10000000
15#ifndef IRAMORIG
16#define IRAMORIG 0x40000000
17#endif 8#endif
18#define IRAMSIZE 0x20000
19#define FLASHORIG 0x001f0000
20#define FLASHSIZE 2M
21
22MEMORY
23{
24 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
25 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
26}
27
28SECTIONS
29{
30 . = IRAMORIG;
31
32 .text : {
33 *(.init.text)
34 *(.text*)
35 *(.glue_7)
36 *(.glue_7t)
37 } > IRAM
38
39 .data : {
40 *(.icode)
41 *(.irodata)
42 *(.idata)
43 *(.data*)
44 *(.ncdata*)
45 *(.rodata*)
46 _dataend = . ;
47 } > IRAM
48
49 .stack (NOLOAD) : {
50 *(.stack)
51 _stackbegin = .;
52 stackbegin = .;
53 . += 0x2000;
54 _stackend = .;
55 stackend = .;
56 } > IRAM
57
58 /* The bss section is too large for IRAM - we just move it 16MB into the
59 DRAM */
60
61 . = DRAMORIG;
62 .bss . + (16*1024*1024) (NOLOAD) : {
63 _edata = .;
64 *(.bss*);
65 *(.ibss);
66 *(COMMON)
67 *(.ncbss*);
68 _end = .;
69 } > DRAM
70}
71#endif /* HAVE_BOOTLOADER_USB_MODE */