From b0c6276b40a53c5ca96474c6f76fa566d81cf1c6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 26 Feb 2003 16:05:30 +0000 Subject: Moved to one single .lds file for ALL builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3347 a1c6a512-1295-4272-9138-f99709370657 --- firmware/app.lds | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'firmware/app.lds') diff --git a/firmware/app.lds b/firmware/app.lds index c6149252cb..4a8ae724fa 100644 --- a/firmware/app.lds +++ b/firmware/app.lds @@ -2,11 +2,17 @@ ENTRY(start) OUTPUT_FORMAT(elf32-sh) INPUT(crt0.o) +#ifdef DEBUG +#define DRAMSIZE 0x1f0000 +#define ORIGADDR 0x09010000 +#else #define DRAMSIZE (MEMORYSIZE * 0x100000) +#define ORIGADDR 0x09000000 +#endif MEMORY { - DRAM : ORIGIN = 0x09000000, LENGTH = DRAMSIZE + DRAM : ORIGIN = ORIGADDR, LENGTH = DRAMSIZE IRAM : ORIGIN = 0x0f000000, LENGTH = 0x1000 } @@ -56,6 +62,15 @@ SECTIONS _end = .; } > DRAM +#ifdef DEBUG + .heap : + { + _poolstart = .; + . = 0x20000; + _poolend = .; + } > DRAM +#endif + .mp3buf : { _mp3buf = .; -- cgit v1.2.3