diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-10-06 13:30:44 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-10-06 13:30:44 +0000 |
| commit | c00e4b29e967638503e4dbc8a8465b3743d39f0f (patch) | |
| tree | 215cf9bdd2796d27ff8f01e38dc4025348fbe7f8 /firmware/app.lds | |
| parent | f8e1183a521ef11a53d009d9495bd9fb2e68ff0d (diff) | |
| download | rockbox-c00e4b29e967638503e4dbc8a8465b3743d39f0f.zip rockbox-c00e4b29e967638503e4dbc8a8465b3743d39f0f.tar.gz rockbox-c00e4b29e967638503e4dbc8a8465b3743d39f0f.tar.bz2 rockbox-c00e4b29e967638503e4dbc8a8465b3743d39f0f.tar.xz | |
Adapted for iRiver H1xx
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5187 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/app.lds')
| -rw-r--r-- | firmware/app.lds | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/firmware/app.lds b/firmware/app.lds index 5397910..aab8900 100644 --- a/firmware/app.lds +++ b/firmware/app.lds @@ -1,25 +1,38 @@ #include "config.h" ENTRY(start) +#if CONFIG_CPU == MCF5249 +OUTPUT_FORMAT(elf32-m68k) +#else OUTPUT_FORMAT(elf32-sh) +#endif INPUT(crt0.o) #define PLUGINSIZE 0x8000 #ifdef DEBUG -#define DRAMSIZE 0x1f0000 - PLUGINSIZE -#define ORIGADDR 0x09010000 - +#define STUBOFFSET 0x10000 #else -#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE -#define ORIGADDR 0x09000000 +#define STUBOFFSET 0 #endif + +#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET #define ENDADDR (ORIGADDR + DRAMSIZE) +#ifdef IRIVER_H100 +#define DRAMORIG 0x20000000 + STUBOFFSET +#define IRAMORIG 0x10000000 +#define IRAMSIZE 0x18000 +#else +#define DRAMORIG 0x09000000 + STUBOFFSET +#define IRAMORIG 0x0f000000 +#define IRAMSIZE 0x1000 +#endif + MEMORY { - DRAM : ORIGIN = ORIGADDR, LENGTH = DRAMSIZE - IRAM : ORIGIN = 0x0f000000, LENGTH = 0x1000 + DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE + IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE } SECTIONS |