diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2008-10-30 20:01:01 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2008-10-30 20:01:01 +0000 |
commit | f4a0f457be567092da038853b9ff295742678175 (patch) | |
tree | b75f94b9bba32b9fc155ea63de7143253de5cd51 | |
parent | 29a5373724d143d2629cafd8cc0c1961546c1bd6 (diff) | |
download | rockbox-f4a0f457be567092da038853b9ff295742678175.tar.gz rockbox-f4a0f457be567092da038853b9ff295742678175.zip |
Sansav2 bootloader: explicitely link everything into IRAM
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18937 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/as3525/boot.lds | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/firmware/target/arm/as3525/boot.lds b/firmware/target/arm/as3525/boot.lds index f94f1c33da..eb977a1023 100644 --- a/firmware/target/arm/as3525/boot.lds +++ b/firmware/target/arm/as3525/boot.lds | |||
@@ -5,23 +5,37 @@ OUTPUT_FORMAT(elf32-littlearm) | |||
5 | OUTPUT_ARCH(arm) | 5 | OUTPUT_ARCH(arm) |
6 | STARTUP(target/arm/crt0.o) | 6 | STARTUP(target/arm/crt0.o) |
7 | 7 | ||
8 | #define DRAMSIZE (MEMORYSIZE * 0x100000) | ||
9 | #define DRAMORIG 0x30000000 | ||
10 | #define IRAMORIG 0 | ||
11 | #define IRAMSIZE 0x50000 | ||
12 | |||
13 | MEMORY | ||
14 | { | ||
15 | DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE | ||
16 | IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE | ||
17 | } | ||
18 | |||
8 | SECTIONS | 19 | SECTIONS |
9 | { | 20 | { |
10 | /*. = IRAMORIG; */ | 21 | . = IRAMORIG; |
11 | 22 | ||
12 | .text : { | 23 | .text : { |
13 | *(.init.text) | 24 | *(.init.text) |
25 | *(.glue_7) | ||
26 | *(.glue_7t) | ||
14 | *(.text*) | 27 | *(.text*) |
15 | } | 28 | } > IRAM |
16 | 29 | ||
17 | .data : { | 30 | .data : { |
18 | *(.icode) | 31 | *(.icode) |
19 | *(.irodata) | 32 | *(.irodata) |
20 | *(.idata) | 33 | *(.idata) |
21 | *(.data*) | 34 | *(.data*) |
22 | *(.ncdata*); | 35 | *(.ncdata*) |
36 | *(.rodata*) | ||
23 | _dataend = . ; | 37 | _dataend = . ; |
24 | } | 38 | } > IRAM |
25 | 39 | ||
26 | .stack : | 40 | .stack : |
27 | { | 41 | { |
@@ -31,7 +45,7 @@ SECTIONS | |||
31 | . += 0x2000; | 45 | . += 0x2000; |
32 | _stackend = .; | 46 | _stackend = .; |
33 | stackend = .; | 47 | stackend = .; |
34 | } | 48 | } > IRAM |
35 | 49 | ||
36 | .bss : { | 50 | .bss : { |
37 | _edata = .; | 51 | _edata = .; |
@@ -39,5 +53,5 @@ SECTIONS | |||
39 | *(.ibss); | 53 | *(.ibss); |
40 | *(.ncbss*); | 54 | *(.ncbss*); |
41 | _end = .; | 55 | _end = .; |
42 | } | 56 | } > IRAM |
43 | } | 57 | } |