diff options
Diffstat (limited to 'firmware/target/arm/as3525/boot.lds')
-rw-r--r-- | firmware/target/arm/as3525/boot.lds | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/firmware/target/arm/as3525/boot.lds b/firmware/target/arm/as3525/boot.lds index 9c6d6faf11..dcc291b54f 100644 --- a/firmware/target/arm/as3525/boot.lds +++ b/firmware/target/arm/as3525/boot.lds | |||
@@ -6,24 +6,29 @@ OUTPUT_FORMAT(elf32-littlearm) | |||
6 | OUTPUT_ARCH(arm) | 6 | OUTPUT_ARCH(arm) |
7 | STARTUP(target/arm/crt0.o) | 7 | STARTUP(target/arm/crt0.o) |
8 | 8 | ||
9 | #define IRAMORIG 0x81000000 | 9 | #ifdef SANSA_CLIPV2 |
10 | #define IRAMSIZE 0x50000 | 10 | #define RAMORIG 0x0 /* DRAM */ |
11 | #define RAMSIZE (MEM*0x100000) | ||
12 | #else | ||
13 | #define RAMORIG 0x81000000 /* IRAM */ | ||
14 | #define RAMSIZE 0x50000 | ||
15 | #endif | ||
11 | 16 | ||
12 | MEMORY | 17 | MEMORY |
13 | { | 18 | { |
14 | IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE | 19 | RAM : ORIGIN = RAMORIG, LENGTH = RAMSIZE |
15 | } | 20 | } |
16 | 21 | ||
17 | SECTIONS | 22 | SECTIONS |
18 | { | 23 | { |
19 | . = IRAMORIG; | 24 | . = RAMORIG; |
20 | 25 | ||
21 | .text : { | 26 | .text : { |
22 | *(.init.text) | 27 | *(.init.text) |
23 | *(.glue_7) | 28 | *(.glue_7) |
24 | *(.glue_7t) | 29 | *(.glue_7t) |
25 | *(.text*) | 30 | *(.text*) |
26 | } > IRAM | 31 | } > RAM |
27 | 32 | ||
28 | .data : { | 33 | .data : { |
29 | *(.icode) | 34 | *(.icode) |
@@ -33,7 +38,7 @@ SECTIONS | |||
33 | *(.ncdata*) | 38 | *(.ncdata*) |
34 | *(.rodata*) | 39 | *(.rodata*) |
35 | _dataend = . ; | 40 | _dataend = . ; |
36 | } > IRAM | 41 | } > RAM |
37 | 42 | ||
38 | .stack : | 43 | .stack : |
39 | { | 44 | { |
@@ -43,7 +48,7 @@ SECTIONS | |||
43 | . += 0x2000; | 48 | . += 0x2000; |
44 | _stackend = .; | 49 | _stackend = .; |
45 | stackend = .; | 50 | stackend = .; |
46 | } > IRAM | 51 | } > RAM |
47 | 52 | ||
48 | .bss : { | 53 | .bss : { |
49 | _edata = .; | 54 | _edata = .; |
@@ -52,5 +57,5 @@ SECTIONS | |||
52 | *(COMMON) | 57 | *(COMMON) |
53 | *(.ncbss*); | 58 | *(.ncbss*); |
54 | _end = .; | 59 | _end = .; |
55 | } > IRAM | 60 | } > RAM |
56 | } | 61 | } |