summaryrefslogtreecommitdiff
path: root/firmware/target/arm/ipod/boot.lds
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/ipod/boot.lds')
-rw-r--r--firmware/target/arm/ipod/boot.lds22
1 files changed, 15 insertions, 7 deletions
diff --git a/firmware/target/arm/ipod/boot.lds b/firmware/target/arm/ipod/boot.lds
index 5c80f1fbc3..69a89cd5f5 100644
--- a/firmware/target/arm/ipod/boot.lds
+++ b/firmware/target/arm/ipod/boot.lds
@@ -29,6 +29,12 @@ STARTUP(target/arm/crt0-pp-bl.o)
29#define FLASHSIZE 2M 29#define FLASHSIZE 2M
30#endif 30#endif
31 31
32MEMORY
33{
34 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
35 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
36}
37
32SECTIONS 38SECTIONS
33{ 39{
34 . = IRAMORIG; 40 . = IRAMORIG;
@@ -36,26 +42,28 @@ SECTIONS
36 .text : { 42 .text : {
37 *(.init.text) 43 *(.init.text)
38 *(.text*) 44 *(.text*)
39 } 45 *(.glue_7)
46 *(.glue_7t)
47 } > IRAM
40 48
41 .data : { 49 .data : {
42 *(.icode) 50 *(.icode)
43 *(.irodata) 51 *(.irodata)
44 *(.idata) 52 *(.idata)
45 *(.data*) 53 *(.data*)
46 *(.ncdata*); 54 *(.ncdata*)
55 *(.rodata*)
47 _dataend = . ; 56 _dataend = . ;
48 } 57 } > IRAM
49 58
50 .stack : 59 .stack : {
51 {
52 *(.stack) 60 *(.stack)
53 _stackbegin = .; 61 _stackbegin = .;
54 stackbegin = .; 62 stackbegin = .;
55 . += 0x2000; 63 . += 0x2000;
56 _stackend = .; 64 _stackend = .;
57 stackend = .; 65 stackend = .;
58 } 66 } > IRAM
59 67
60 /* The bss section is too large for IRAM - we just move it 16MB into the 68 /* The bss section is too large for IRAM - we just move it 16MB into the
61 DRAM */ 69 DRAM */
@@ -67,5 +75,5 @@ SECTIONS
67 *(.ibss); 75 *(.ibss);
68 *(.ncbss*); 76 *(.ncbss*);
69 _end = .; 77 _end = .;
70 } 78 } > DRAM
71} 79}