summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-10-06 13:30:44 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-10-06 13:30:44 +0000
commitc00e4b29e967638503e4dbc8a8465b3743d39f0f (patch)
tree215cf9bdd2796d27ff8f01e38dc4025348fbe7f8
parentf8e1183a521ef11a53d009d9495bd9fb2e68ff0d (diff)
downloadrockbox-c00e4b29e967638503e4dbc8a8465b3743d39f0f.tar.gz
rockbox-c00e4b29e967638503e4dbc8a8465b3743d39f0f.zip
Adapted for iRiver H1xx
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5187 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/app.lds27
1 files changed, 20 insertions, 7 deletions
diff --git a/firmware/app.lds b/firmware/app.lds
index 5397910666..aab8900b76 100644
--- a/firmware/app.lds
+++ b/firmware/app.lds
@@ -1,25 +1,38 @@
1#include "config.h" 1#include "config.h"
2 2
3ENTRY(start) 3ENTRY(start)
4#if CONFIG_CPU == MCF5249
5OUTPUT_FORMAT(elf32-m68k)
6#else
4OUTPUT_FORMAT(elf32-sh) 7OUTPUT_FORMAT(elf32-sh)
8#endif
5INPUT(crt0.o) 9INPUT(crt0.o)
6 10
7#define PLUGINSIZE 0x8000 11#define PLUGINSIZE 0x8000
8 12
9#ifdef DEBUG 13#ifdef DEBUG
10#define DRAMSIZE 0x1f0000 - PLUGINSIZE 14#define STUBOFFSET 0x10000
11#define ORIGADDR 0x09010000
12
13#else 15#else
14#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE 16#define STUBOFFSET 0
15#define ORIGADDR 0x09000000
16#endif 17#endif
18
19#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET
17#define ENDADDR (ORIGADDR + DRAMSIZE) 20#define ENDADDR (ORIGADDR + DRAMSIZE)
18 21
22#ifdef IRIVER_H100
23#define DRAMORIG 0x20000000 + STUBOFFSET
24#define IRAMORIG 0x10000000
25#define IRAMSIZE 0x18000
26#else
27#define DRAMORIG 0x09000000 + STUBOFFSET
28#define IRAMORIG 0x0f000000
29#define IRAMSIZE 0x1000
30#endif
31
19MEMORY 32MEMORY
20{ 33{
21 DRAM : ORIGIN = ORIGADDR, LENGTH = DRAMSIZE 34 DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
22 IRAM : ORIGIN = 0x0f000000, LENGTH = 0x1000 35 IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
23} 36}
24 37
25SECTIONS 38SECTIONS