summaryrefslogtreecommitdiff
path: root/firmware
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
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')
-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
40 40
41 .text : 41 .text :
42 { 42 {
43 _loadaddress = .;
43 _textstart = .; 44 _textstart = .;
44 *(.text) 45 *(.text)
45 *(.text*) 46 *(.text*)
@@ -70,23 +71,6 @@ SECTIONS
70 71
71 _initdata_end =.; 72 _initdata_end =.;
72 73
73 .stack (NOLOAD) :
74 {
75 *(.stack)
76 stackbegin = .;
77 . += 0x2000;
78 stackend = .;
79 } > DRAM
80
81 .bss (NOLOAD) :
82 {
83 _edata = .;
84 *(.bss*)
85 *(COMMON)
86 . = ALIGN(0x4);
87 _end = .;
88 } > DRAM
89
90 .vectors IRAMORIG: 74 .vectors IRAMORIG:
91 { 75 {
92 _vectors_start = .; 76 _vectors_start = .;
@@ -116,6 +100,23 @@ SECTIONS
116 100
117 _iramcopy = LOADADDR(.iram); 101 _iramcopy = LOADADDR(.iram);
118 102
103 .stack (NOLOAD) :
104 {
105 *(.stack)
106 stackbegin = .;
107 . += 0x2000;
108 stackend = .;
109 } > DRAM
110
111 .bss (NOLOAD) :
112 {
113 _edata = .;
114 *(.bss*)
115 *(COMMON)
116 . = ALIGN(0x4);
117 _end = .;
118 } > DRAM
119
119 .audiobuf (NOLOAD) : 120 .audiobuf (NOLOAD) :
120 { 121 {
121 . = ALIGN(4); 122 . = ALIGN(4);