summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-06-29 13:12:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-06-29 13:12:45 +0000
commit3a78ab9a4f56e3c4dddfb85b7c8a7c89c1ef1c86 (patch)
tree02c43b72a3bf05e6da82370457c5add54d74dd09 /apps/plugins
parent01377e2e5791ae72f112c722405efb6e12e00db5 (diff)
fix to enable plugins to build fine for h300
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6913 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/plugin.lds12
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds
index d0ddb78cbf..42f56e58bf 100644
--- a/apps/plugins/plugin.lds
+++ b/apps/plugins/plugin.lds
@@ -14,7 +14,11 @@ OUTPUT_FORMAT(elf32-sh)
#define STUBOFFSET 0
#endif
-#ifdef IRIVER_H100
+#if defined(IRIVER_H100) || defined(IRIVER_H300)
+#define ARCH_IRIVER
+#endif
+
+#ifdef ARCH_IRIVER
#define DRAMORIG 0x31000000
#define IRAMORIG 0x10010000
#define IRAMSIZE 0x8000
@@ -39,7 +43,7 @@ OUTPUT_FORMAT(elf32-sh)
MEMORY
{
PLUGIN_RAM : ORIGIN = THIS_ORIGIN, LENGTH = THIS_LENGTH
-#ifdef IRIVER_H100
+#ifdef ARCH_IRIVER
PLUGIN_IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
#endif
}
@@ -68,12 +72,12 @@ SECTIONS
*(.rodata.str1.1)
*(.rodata.str1.4)
. = ALIGN(0x4);
-#ifdef IRIVER_H100
+#ifdef ARCH_IRIVER
iramcopy = .;
#endif
} > PLUGIN_RAM
-#ifdef IRIVER_H100
+#ifdef ARCH_IRIVER
.iram IRAMORIG : AT ( iramcopy)
{
iramstart = .;