summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/app.lds
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-09-20 17:09:55 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-09-20 17:09:55 +0000
commit66f8fb52a9114ece70e1771119096589004d29f0 (patch)
treef1894d14dd0a26a5637acfe409c550d7a2b0443f /firmware/target/arm/as3525/app.lds
parent72404784578162495c9986cd1563d9924ddc15be (diff)
downloadrockbox-66f8fb52a9114ece70e1771119096589004d29f0.tar.gz
rockbox-66f8fb52a9114ece70e1771119096589004d29f0.zip
*/app.lds: remove STUBOFFSET
This is related to gdb, and gdb can only work on SH and ifp This was mistakenly kept when app.lds was forked for each SoC Side-effect: fix DEBUG builds when the rockbox binary is expected to be loaded at the start of DRAM and there is no runtime relocation git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28124 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/app.lds')
-rw-r--r--firmware/target/arm/as3525/app.lds22
1 files changed, 6 insertions, 16 deletions
diff --git a/firmware/target/arm/as3525/app.lds b/firmware/target/arm/as3525/app.lds
index e19ff13878..b24a2cf00b 100644
--- a/firmware/target/arm/as3525/app.lds
+++ b/firmware/target/arm/as3525/app.lds
@@ -10,28 +10,18 @@ STARTUP(target/arm/crt0.o)
10#define PLUGINSIZE PLUGIN_BUFFER_SIZE 10#define PLUGINSIZE PLUGIN_BUFFER_SIZE
11#define CODECSIZE CODEC_SIZE 11#define CODECSIZE CODEC_SIZE
12 12
13#ifdef DEBUG
14#define STUBOFFSET 0x10000
15#else
16#define STUBOFFSET 0
17#endif
18
19
20#define IRAMORIG IRAM_ORIG
21#define DRAMORIG (DRAM_ORIG + STUBOFFSET)
22
23/* End of the audio buffer, where the codec buffer starts */ 13/* End of the audio buffer, where the codec buffer starts */
24#define ENDAUDIOADDR (DRAMORIG + DRAMSIZE) 14#define ENDAUDIOADDR (DRAM_ORIG + DRAMSIZE)
25 15
26#define CODEC_BUFFER_FILLS_IRAM defined(AMS_LOWMEM) || (CONFIG_CPU == AS3525v2) 16#define CODEC_BUFFER_FILLS_IRAM defined(AMS_LOWMEM) || (CONFIG_CPU == AS3525v2)
27 17
28#if CODEC_BUFFER_FILLS_IRAM 18#if CODEC_BUFFER_FILLS_IRAM
29/* Entire codec buffer in IRAM */ 19/* Entire codec buffer in IRAM */
30#define DRAMSIZE (DRAM_SIZE - STUBOFFSET - PLUGINSIZE - TTB_SIZE) 20#define DRAMSIZE (DRAM_SIZE - PLUGINSIZE - TTB_SIZE)
31#define CODECORIG (IRAMORIG + (IRAM_SIZE - CODEC_SIZE)) 21#define CODECORIG (IRAM_ORIG + (IRAM_SIZE - CODEC_SIZE))
32#define IRAMSIZE (IRAM_SIZE - CODEC_SIZE) 22#define IRAMSIZE (IRAM_SIZE - CODEC_SIZE)
33#else 23#else
34#define DRAMSIZE (DRAM_SIZE - STUBOFFSET - PLUGINSIZE - CODECSIZE - TTB_SIZE) 24#define DRAMSIZE (DRAM_SIZE - PLUGINSIZE - CODECSIZE - TTB_SIZE)
35#define CODECORIG (ENDAUDIOADDR) 25#define CODECORIG (ENDAUDIOADDR)
36#define IRAMSIZE (0x20000) 26#define IRAMSIZE (0x20000)
37#endif 27#endif
@@ -49,8 +39,8 @@ MEMORY
49#if CODEC_BUFFER_FILLS_IRAM 39#if CODEC_BUFFER_FILLS_IRAM
50 CODEC_IRAM : ORIGIN = CODECORIG, LENGTH = CODEC_SIZE 40 CODEC_IRAM : ORIGIN = CODECORIG, LENGTH = CODEC_SIZE
51#endif 41#endif
52 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE 42 IRAM : ORIGIN = IRAM_ORIG, LENGTH = IRAMSIZE
53 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE 43 DRAM : ORIGIN = DRAM_ORIG, LENGTH = DRAMSIZE
54} 44}
55 45
56SECTIONS 46SECTIONS