summaryrefslogtreecommitdiffstats
path: root/firmware/rom.lds
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-09-03 13:16:19 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-09-03 13:16:19 +0000
commit762a6c6d8ac10928fd458006cacca8194bf43ac6 (patch)
tree2f50c3e428b43304a79cfcb3233872e45ba55423 /firmware/rom.lds
parent32cd555973ce670f4f947f1bc052fab00c4b0844 (diff)
downloadrockbox-762a6c6d8ac10928fd458006cacca8194bf43ac6.tar.gz
rockbox-762a6c6d8ac10928fd458006cacca8194bf43ac6.tar.bz2
rockbox-762a6c6d8ac10928fd458006cacca8194bf43ac6.zip
define the ROM start in the config-*.h file instead and avoid the ifdef
in the rom.lds file git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5035 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/rom.lds')
-rw-r--r--firmware/rom.lds8
1 files changed, 3 insertions, 5 deletions
diff --git a/firmware/rom.lds b/firmware/rom.lds
index 2996ee6205..c5492431b2 100644
--- a/firmware/rom.lds
+++ b/firmware/rom.lds
@@ -1,3 +1,5 @@
+#include "config.h"
+
ENTRY(start)
OUTPUT_FORMAT(elf32-sh)
INPUT(crt0.o)
@@ -5,11 +7,7 @@ MEMORY
{
DRAM : ORIGIN = 0x09000000, LENGTH = (2 * 0x100000) - 0x8000
IRAM : ORIGIN = 0x0f000000, LENGTH = 0x1000
-#ifdef ARCHOS_RECORDER /* recorder v1 */
- FLASH : ORIGIN = 0x02000000 + 0x11010, LENGTH = 256K - 0x11010
-#else /* recorder v2 */
- FLASH : ORIGIN = 0x02000000 + 0x12010, LENGTH = 256K - 0x12010
-#endif
+ FLASH : ORIGIN = 0x02000000 + ROM_START, LENGTH = 256K - ROM_START
}
SECTIONS
{