summaryrefslogtreecommitdiff
path: root/firmware/target/arm/sandisk
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/sandisk')
-rw-r--r--firmware/target/arm/sandisk/boot.lds19
1 files changed, 13 insertions, 6 deletions
diff --git a/firmware/target/arm/sandisk/boot.lds b/firmware/target/arm/sandisk/boot.lds
index f829076b12..1eeda06340 100644
--- a/firmware/target/arm/sandisk/boot.lds
+++ b/firmware/target/arm/sandisk/boot.lds
@@ -15,6 +15,11 @@ STARTUP(target/arm/crt0-pp-bl.o)
15#define FLASHORIG 0x001f0000 15#define FLASHORIG 0x001f0000
16#define FLASHSIZE 2M 16#define FLASHSIZE 2M
17 17
18MEMORY
19{
20 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
21 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
22}
18 23
19SECTIONS 24SECTIONS
20{ 25{
@@ -23,7 +28,9 @@ SECTIONS
23 .text : { 28 .text : {
24 *(.init.text) 29 *(.init.text)
25 *(.text*) 30 *(.text*)
26 } 31 *(.glue_7)
32 *(.glue_7t)
33 } > IRAM
27 34
28 .data : { 35 .data : {
29 *(.icode) 36 *(.icode)
@@ -31,18 +38,18 @@ SECTIONS
31 *(.idata) 38 *(.idata)
32 *(.data*) 39 *(.data*)
33 *(.ncdata*) 40 *(.ncdata*)
41 *(.rodata*)
34 _dataend = . ; 42 _dataend = . ;
35 } 43 } > IRAM
36 44
37 .stack : 45 .stack : {
38 {
39 *(.stack) 46 *(.stack)
40 _stackbegin = .; 47 _stackbegin = .;
41 stackbegin = .; 48 stackbegin = .;
42 . += 0x2000; 49 . += 0x2000;
43 _stackend = .; 50 _stackend = .;
44 stackend = .; 51 stackend = .;
45 } 52 } > IRAM
46 53
47 /* The bss section is too large for IRAM - we just move it 16MB into the 54 /* The bss section is too large for IRAM - we just move it 16MB into the
48 DRAM */ 55 DRAM */
@@ -54,5 +61,5 @@ SECTIONS
54 *(.ibss); 61 *(.ibss);
55 *(.ncbss*); 62 *(.ncbss*);
56 _end = .; 63 _end = .;
57 } 64 } > DRAM
58} 65}