summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525/app.lds
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2008-12-01 03:54:27 +0000
committerRafaël Carré <rafael.carre@gmail.com>2008-12-01 03:54:27 +0000
commitc9ba3adf0ddef0ce55dd24e446b878e3de9ee058 (patch)
tree17920696d2c453e99463c0a175bfaaf60f319110 /firmware/target/arm/as3525/app.lds
parentca123a1ad3936b0c003ea59f3d57cb2eb04d0bc2 (diff)
downloadrockbox-c9ba3adf0ddef0ce55dd24e446b878e3de9ee058.tar.gz
rockbox-c9ba3adf0ddef0ce55dd24e446b878e3de9ee058.zip
Sansa AMS: do not load stack and bss inside the rockbox binary (FS#9593)
Define _loadaddress to fix RAM usage reported by mkinfo.pl git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19278 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/app.lds')
-rw-r--r--firmware/target/arm/as3525/app.lds35
1 files changed, 18 insertions, 17 deletions
diff --git a/firmware/target/arm/as3525/app.lds b/firmware/target/arm/as3525/app.lds
index c2d3ed83ee..bf8e68f048 100644
--- a/firmware/target/arm/as3525/app.lds
+++ b/firmware/target/arm/as3525/app.lds
@@ -40,6 +40,7 @@ SECTIONS
.text :
{
+ _loadaddress = .;
_textstart = .;
*(.text)
*(.text*)
@@ -70,23 +71,6 @@ SECTIONS
_initdata_end =.;
- .stack (NOLOAD) :
- {
- *(.stack)
- stackbegin = .;
- . += 0x2000;
- stackend = .;
- } > DRAM
-
- .bss (NOLOAD) :
- {
- _edata = .;
- *(.bss*)
- *(COMMON)
- . = ALIGN(0x4);
- _end = .;
- } > DRAM
-
.vectors IRAMORIG:
{
_vectors_start = .;
@@ -116,6 +100,23 @@ SECTIONS
_iramcopy = LOADADDR(.iram);
+ .stack (NOLOAD) :
+ {
+ *(.stack)
+ stackbegin = .;
+ . += 0x2000;
+ stackend = .;
+ } > DRAM
+
+ .bss (NOLOAD) :
+ {
+ _edata = .;
+ *(.bss*)
+ *(COMMON)
+ . = ALIGN(0x4);
+ _end = .;
+ } > DRAM
+
.audiobuf (NOLOAD) :
{
. = ALIGN(4);