diff options
-rw-r--r-- | apps/plugins/plugin.lds | 14 |
1 files changed, 13 insertions, 1 deletions
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) | |||
8 | OUTPUT_FORMAT(elf32-sh) | 8 | OUTPUT_FORMAT(elf32-sh) |
9 | #endif | 9 | #endif |
10 | 10 | ||
11 | #ifdef DEBUG | ||
12 | #define STUBOFFSET 0x10000 | ||
13 | #else | ||
14 | #define STUBOFFSET 0 | ||
15 | #endif | ||
16 | |||
17 | #ifdef IRIVER_H100 | ||
18 | #define DRAMORIG 0x30000000 | ||
19 | #else | ||
20 | #define DRAMORIG 0x09000000 + STUBOFFSET | ||
21 | #endif | ||
22 | |||
11 | #define PLUGIN_LENGTH 0x8000 | 23 | #define PLUGIN_LENGTH 0x8000 |
12 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH | 24 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH |
13 | #define PLUGIN_ORIGIN (0x09000000 + (DRAMSIZE)) | 25 | #define PLUGIN_ORIGIN (DRAMORIG + (DRAMSIZE)) |
14 | 26 | ||
15 | MEMORY | 27 | MEMORY |
16 | { | 28 | { |