summaryrefslogtreecommitdiff
path: root/firmware/app.lds
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-02-26 16:45:10 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-02-26 16:45:10 +0000
commit1bacfaf540057e092e7bad5f2b6d16f33181ee0d (patch)
tree57ad2a68ce8f82c073cd7db8f96c96c133d82848 /firmware/app.lds
parent97d88c32baf94a0f88499246e3a6d73b7a052449 (diff)
set mp3end correctly depending on memory size
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3349 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/app.lds')
-rw-r--r--firmware/app.lds4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/app.lds b/firmware/app.lds
index 4a8ae724fa..80feea3ff3 100644
--- a/firmware/app.lds
+++ b/firmware/app.lds
@@ -5,9 +5,11 @@ INPUT(crt0.o)
#ifdef DEBUG
#define DRAMSIZE 0x1f0000
#define ORIGADDR 0x09010000
+#define ENDADDR 0x09200000
#else
#define DRAMSIZE (MEMORYSIZE * 0x100000)
#define ORIGADDR 0x09000000
+#define ENDADDR (ORIGADDR + DRAMSIZE)
#endif
MEMORY
@@ -76,7 +78,7 @@ SECTIONS
_mp3buf = .;
} > DRAM
- .mp3end 0x09200000 - 0x300:
+ .mp3end ENDADDR - 0x300:
{
_mp3end = .;
} > DRAM