summaryrefslogtreecommitdiff
path: root/apps/plugins/plugin.lds
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/plugin.lds')
-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 d0ddb78..42f56e5 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 = .;