diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2013-07-19 08:18:16 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2013-07-19 08:18:16 -0400 |
commit | d2249dce6f4dda8cb71e048ced6562f26515d27f (patch) | |
tree | 897a1da0147d9ea459d6ca3ec7234695dacfaa49 /firmware/target/arm/ipod/boot.lds | |
parent | 4596f51c90db76d125c7c963efa4876443a82440 (diff) | |
download | rockbox-d2249dce6f4dda8cb71e048ced6562f26515d27f.tar.gz rockbox-d2249dce6f4dda8cb71e048ced6562f26515d27f.zip |
Combine PortalPlayer .lds files into one for app and boot.
These nearly identical files are multiplying like rabbits as PP targets
are added and make SoC-related changes a PITA. Just include the master
.lds file from the target one as was done for bootloader USB.
Change-Id: I65e9e653030f0688b1728e32ada16abf2932e029
Diffstat (limited to 'firmware/target/arm/ipod/boot.lds')
-rw-r--r-- | firmware/target/arm/ipod/boot.lds | 80 |
1 files changed, 1 insertions, 79 deletions
diff --git a/firmware/target/arm/ipod/boot.lds b/firmware/target/arm/ipod/boot.lds index 6cd30c9eee..33b826bec8 100644 --- a/firmware/target/arm/ipod/boot.lds +++ b/firmware/target/arm/ipod/boot.lds | |||
@@ -1,80 +1,2 @@ | |||
1 | #include "config.h" | 1 | #include "config.h" |
2 | 2 | #include "../pp/boot-pp.lds" | |
3 | ENTRY(start) | ||
4 | OUTPUT_FORMAT(elf32-littlearm) | ||
5 | OUTPUT_ARCH(arm) | ||
6 | STARTUP(target/arm/pp/crt0-pp-bl.o) | ||
7 | |||
8 | #define DRAMSIZE (MEMORYSIZE * 0x100000) | ||
9 | |||
10 | #if CONFIG_CPU == PP5020 | ||
11 | #define DRAMORIG 0x10000000 | ||
12 | #define IRAMORIG 0x40000000 | ||
13 | #define IRAMSIZE 0x18000 | ||
14 | #define FLASHORIG 0x001f0000 | ||
15 | #define FLASHSIZE 2M | ||
16 | #elif (CONFIG_CPU == PP5022) || (CONFIG_CPU == PP5024) | ||
17 | #define DRAMORIG 0x10000000 | ||
18 | #ifndef IRAMORIG | ||
19 | #define IRAMORIG 0x40000000 | ||
20 | #endif | ||
21 | #define IRAMSIZE 0x20000 | ||
22 | #define FLASHORIG 0x001f0000 | ||
23 | #define FLASHSIZE 2M | ||
24 | #elif CONFIG_CPU == PP5002 | ||
25 | #define DRAMORIG 0x28000000 | ||
26 | #define IRAMORIG 0x40000000 | ||
27 | #define IRAMSIZE 0x18000 | ||
28 | #define FLASHORIG 0x001f0000 | ||
29 | #define FLASHSIZE 2M | ||
30 | #endif | ||
31 | |||
32 | MEMORY | ||
33 | { | ||
34 | DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE | ||
35 | IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE | ||
36 | } | ||
37 | |||
38 | SECTIONS | ||
39 | { | ||
40 | . = IRAMORIG; | ||
41 | |||
42 | .text : { | ||
43 | *(.init.text) | ||
44 | *(.text*) | ||
45 | *(.glue_7) | ||
46 | *(.glue_7t) | ||
47 | } > IRAM | ||
48 | |||
49 | .data : { | ||
50 | *(.icode) | ||
51 | *(.irodata) | ||
52 | *(.idata) | ||
53 | *(.data*) | ||
54 | *(.ncdata*) | ||
55 | *(.rodata*) | ||
56 | _dataend = . ; | ||
57 | } > IRAM | ||
58 | |||
59 | .stack (NOLOAD) : { | ||
60 | *(.stack) | ||
61 | _stackbegin = .; | ||
62 | stackbegin = .; | ||
63 | . += 0x2000; | ||
64 | _stackend = .; | ||
65 | stackend = .; | ||
66 | } > IRAM | ||
67 | |||
68 | /* The bss section is too large for IRAM - we just move it 16MB into the | ||
69 | DRAM */ | ||
70 | |||
71 | . = DRAMORIG; | ||
72 | .bss . + (16*1024*1024) (NOLOAD) : { | ||
73 | _edata = .; | ||
74 | *(.bss*); | ||
75 | *(.ibss); | ||
76 | *(COMMON) | ||
77 | *(.ncbss*); | ||
78 | _end = .; | ||
79 | } > DRAM | ||
80 | } | ||