diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index 071630f681..a849046b74 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds @@ -8,9 +8,21 @@ OUTPUT_FORMAT(elf32-m68k) OUTPUT_FORMAT(elf32-sh) #endif +#ifdef DEBUG +#define STUBOFFSET 0x10000 +#else +#define STUBOFFSET 0 +#endif + +#ifdef IRIVER_H100 +#define DRAMORIG 0x30000000 +#else +#define DRAMORIG 0x09000000 + STUBOFFSET +#endif + #define PLUGIN_LENGTH 0x8000 #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH -#define PLUGIN_ORIGIN (0x09000000 + (DRAMSIZE)) +#define PLUGIN_ORIGIN (DRAMORIG + (DRAMSIZE)) MEMORY {