logo       

linus: firmware rom.lds,1.4,1.5: msg#00207

systems.archos.rockbox.cvs

Subject: linus: firmware rom.lds,1.4,1.5

Update of /cvsroot/rockbox/firmware
In directory labb:/tmp/cvs-serv23556/firmware

Modified Files:
rom.lds
Log Message:
Adjustments for iRiver

Index: rom.lds
===================================================================
RCS file: /cvsroot/rockbox/firmware/rom.lds,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- rom.lds 12 Jan 2005 01:25:19 -0000 1.4
+++ rom.lds 28 Jan 2005 13:19:01 -0000 1.5
@@ -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 @@
_datastart = .;
*(.resetvectors);
*(.vectors);
- . = _datastart + 0x200;
+ . = ALIGN(0x200);
*(.data)
. = ALIGN(0x4);
_dataend = .;
@@ -53,12 +66,13 @@
.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 @@
{
*(.stack)
_stackbegin = .;
+ stackbegin = .;
. += 0x2000;
_stackend = .;
+ stackend = .;
} > DRAM

.bss :

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox-cvs



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise