From 3a78ab9a4f56e3c4dddfb85b7c8a7c89c1ef1c86 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 29 Jun 2005 13:12:45 +0000 Subject: fix to enable plugins to build fine for h300 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6913 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/plugin.lds | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'apps/plugins') 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 = .; -- cgit v1.2.3