diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/plugin.lds | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index 0c5c1e87d3..66433c13e9 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds | |||
@@ -6,8 +6,12 @@ | |||
6 | OUTPUT_FORMAT(elf32-m68k) | 6 | OUTPUT_FORMAT(elf32-m68k) |
7 | #elif defined(CPU_ARM) | 7 | #elif defined(CPU_ARM) |
8 | OUTPUT_FORMAT(elf32-littlearm) | 8 | OUTPUT_FORMAT(elf32-littlearm) |
9 | #else | 9 | #elif defined(CPU_SH) |
10 | OUTPUT_FORMAT(elf32-sh) | 10 | OUTPUT_FORMAT(elf32-sh) |
11 | #elif defined(CPU_MIPS) | ||
12 | OUTPUT_FORMAT(elf32-littlemips) | ||
13 | #else | ||
14 | #error Unknown CPU architecture | ||
11 | #endif | 15 | #endif |
12 | 16 | ||
13 | #ifdef DEBUG | 17 | #ifdef DEBUG |
@@ -99,6 +103,10 @@ OUTPUT_FORMAT(elf32-sh) | |||
99 | #endif | 103 | #endif |
100 | #define DRAMORIG 0x30000000 | 104 | #define DRAMORIG 0x30000000 |
101 | 105 | ||
106 | #elif CONFIG_CPU == JZ4732 | ||
107 | #define DRAMORIG 0x80004000 + STUBOFFSET | ||
108 | #define IRAMORIG 0x80000000 | ||
109 | #define IRAMSIZE 0x4000 | ||
102 | #else | 110 | #else |
103 | #define DRAMORIG 0x09000000 + STUBOFFSET | 111 | #define DRAMORIG 0x09000000 + STUBOFFSET |
104 | #endif | 112 | #endif |
@@ -182,6 +190,9 @@ SECTIONS | |||
182 | /DISCARD/ : | 190 | /DISCARD/ : |
183 | { | 191 | { |
184 | *(.eh_frame) | 192 | *(.eh_frame) |
193 | #ifdef CPU_MIPS | ||
194 | *(.rel.dyn) | ||
195 | #endif | ||
185 | } | 196 | } |
186 | 197 | ||
187 | #if defined(IRAMSIZE) && IRAMSIZE != 0 | 198 | #if defined(IRAMSIZE) && IRAMSIZE != 0 |