summaryrefslogtreecommitdiffstats
path: root/firmware/rom.lds
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-01-28 13:19:01 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-01-28 13:19:01 +0000
commit63cf21da1fbfde43dab020eb1115369f99f9d913 (patch)
tree64dea5e793a2411a3c101ee57a763c812eb9df9a /firmware/rom.lds
parent3804e7a874a516a417e2b321c0a047055e5f0614 (diff)
downloadrockbox-63cf21da1fbfde43dab020eb1115369f99f9d913.tar.gz
rockbox-63cf21da1fbfde43dab020eb1115369f99f9d913.tar.bz2
rockbox-63cf21da1fbfde43dab020eb1115369f99f9d913.zip
Adjustments for iRiver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5696 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/rom.lds')
-rw-r--r--firmware/rom.lds22
1 files changed, 19 insertions, 3 deletions
diff --git a/firmware/rom.lds b/firmware/rom.lds
index aee179b9e7..4da1e24c60 100644
--- a/firmware/rom.lds
+++ b/firmware/rom.lds
@@ -1,17 +1,30 @@
#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
-#define DRAMORIG 0x09000000
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE
+
+#ifdef IRIVER_H100
+#define DRAMORIG 0x30000000
+#define IRAMORIG 0x10000000
+#define IRAMSIZE 0x18000
+#define FLASHORIG 0x001f0000
+#define FLASHSIZE 2M
+#else
+#define DRAMORIG 0x09000000
#define IRAMORIG 0x0f000000
#define IRAMSIZE 0x1000
#define FLASHORIG 0x02000000 + ROM_START
#define FLASHSIZE 256K - ROM_START
+#endif
#define ENDADDR (DRAMORIG + DRAMSIZE)
@@ -33,7 +46,7 @@ SECTIONS
_datastart = .;
*(.resetvectors);
*(.vectors);
- . = _datastart + 0x200;
+ . = ALIGN(0x200);
*(.data)
. = ALIGN(0x4);
_dataend = .;
@@ -53,12 +66,13 @@ SECTIONS
.rodata :
{
*(.rodata)
+ *(.rodata.str1.1)
*(.rodata.str1.4)
. = ALIGN(0x4);
_iramcopy = .;
} > FLASH
- .iram 0xf000000 : AT ( _iramcopy )
+ .iram IRAMORIG : AT ( _iramcopy )
{
_iramstart = .;
*(.icode)
@@ -70,8 +84,10 @@ SECTIONS
{
*(.stack)
_stackbegin = .;
+ stackbegin = .;
. += 0x2000;
_stackend = .;
+ stackend = .;
} > DRAM
.bss :