diff options
Diffstat (limited to 'apps/plugins/plugin.lds')
-rw-r--r-- | apps/plugins/plugin.lds | 12 |
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) | |||
14 | #define STUBOFFSET 0 | 14 | #define STUBOFFSET 0 |
15 | #endif | 15 | #endif |
16 | 16 | ||
17 | #ifdef IRIVER_H100 | 17 | #if defined(IRIVER_H100) || defined(IRIVER_H300) |
18 | #define ARCH_IRIVER | ||
19 | #endif | ||
20 | |||
21 | #ifdef ARCH_IRIVER | ||
18 | #define DRAMORIG 0x31000000 | 22 | #define DRAMORIG 0x31000000 |
19 | #define IRAMORIG 0x10010000 | 23 | #define IRAMORIG 0x10010000 |
20 | #define IRAMSIZE 0x8000 | 24 | #define IRAMSIZE 0x8000 |
@@ -39,7 +43,7 @@ OUTPUT_FORMAT(elf32-sh) | |||
39 | MEMORY | 43 | MEMORY |
40 | { | 44 | { |
41 | PLUGIN_RAM : ORIGIN = THIS_ORIGIN, LENGTH = THIS_LENGTH | 45 | PLUGIN_RAM : ORIGIN = THIS_ORIGIN, LENGTH = THIS_LENGTH |
42 | #ifdef IRIVER_H100 | 46 | #ifdef ARCH_IRIVER |
43 | PLUGIN_IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE | 47 | PLUGIN_IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE |
44 | #endif | 48 | #endif |
45 | } | 49 | } |
@@ -68,12 +72,12 @@ SECTIONS | |||
68 | *(.rodata.str1.1) | 72 | *(.rodata.str1.1) |
69 | *(.rodata.str1.4) | 73 | *(.rodata.str1.4) |
70 | . = ALIGN(0x4); | 74 | . = ALIGN(0x4); |
71 | #ifdef IRIVER_H100 | 75 | #ifdef ARCH_IRIVER |
72 | iramcopy = .; | 76 | iramcopy = .; |
73 | #endif | 77 | #endif |
74 | } > PLUGIN_RAM | 78 | } > PLUGIN_RAM |
75 | 79 | ||
76 | #ifdef IRIVER_H100 | 80 | #ifdef ARCH_IRIVER |
77 | .iram IRAMORIG : AT ( iramcopy) | 81 | .iram IRAMORIG : AT ( iramcopy) |
78 | { | 82 | { |
79 | iramstart = .; | 83 | iramstart = .; |