summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/plugin.lds14
1 files changed, 9 insertions, 5 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds
index 52a5cc32a5..5181e5604d 100644
--- a/apps/plugins/plugin.lds
+++ b/apps/plugins/plugin.lds
@@ -37,6 +37,8 @@ OUTPUT_FORMAT(elf32-sh)
37#define IRAMORIG 0x407000 37#define IRAMORIG 0x407000
38#define IRAMSIZE 0x9000 38#define IRAMSIZE 0x9000
39#elif CONFIG_CPU == S3C2440 39#elif CONFIG_CPU == S3C2440
40#include "s3c2440.h"
41#define DRAMSIZE (MEMORYSIZE * 0x100000) - 0x100 - STUBOFFSET - LCD_BUFFER_SIZE - TTB_SIZE - PLUGIN_BUFFER_SIZE - CODEC_SIZE
40#define DRAMORIG 0x100 + STUBOFFSET 42#define DRAMORIG 0x100 + STUBOFFSET
41#define IRAMORIG DRAMORIG 43#define IRAMORIG DRAMORIG
42#define IRAMSIZE 4K 44#define IRAMSIZE 4K
@@ -46,11 +48,13 @@ OUTPUT_FORMAT(elf32-sh)
46#endif 48#endif
47 49
48#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE 50#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE
51
52#if CONFIG_CPU != S3C2440
49#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - CODEC_SIZE 53#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - CODEC_SIZE
54#endif
50#define CODEC_ORIGIN (DRAMORIG + (DRAMSIZE)) 55#define CODEC_ORIGIN (DRAMORIG + (DRAMSIZE))
51#define PLUGIN_ORIGIN (CODEC_ORIGIN + CODEC_SIZE) 56#define PLUGIN_ORIGIN (CODEC_ORIGIN + CODEC_SIZE)
52 57
53
54#ifdef CODEC 58#ifdef CODEC
55#define THIS_LENGTH CODEC_SIZE 59#define THIS_LENGTH CODEC_SIZE
56#define THIS_ORIGIN CODEC_ORIGIN 60#define THIS_ORIGIN CODEC_ORIGIN
@@ -84,7 +88,7 @@ SECTIONS
84#endif 88#endif
85 } > PLUGIN_RAM 89 } > PLUGIN_RAM
86 90
87 .rodata : 91 .rodata :
88 { 92 {
89 *(.rodata*) 93 *(.rodata*)
90 . = ALIGN(0x4); 94 . = ALIGN(0x4);
@@ -98,7 +102,7 @@ SECTIONS
98#endif 102#endif
99 } > PLUGIN_RAM 103 } > PLUGIN_RAM
100 104
101 /DISCARD/ : 105 /DISCARD/ :
102 { 106 {
103 *(.eh_frame) 107 *(.eh_frame)
104 } 108 }
@@ -124,7 +128,7 @@ SECTIONS
124 128
125 .bss (NOLOAD) : 129 .bss (NOLOAD) :
126 { 130 {
127 plugin_bss_start = .; 131 plugin_bss_start = .;
128 *(.bss*) 132 *(.bss*)
129 *(COMMON) 133 *(COMMON)
130 . = ALIGN(0x4); 134 . = ALIGN(0x4);
@@ -134,7 +138,7 @@ SECTIONS
134 138
135 /* Special trick to avoid a linker error when no other sections are 139 /* Special trick to avoid a linker error when no other sections are
136 left after garbage collection (plugin not for this platform) */ 140 left after garbage collection (plugin not for this platform) */
137 .comment 0 : 141 .comment 0 :
138 { 142 {
139 KEEP(*(.comment)) 143 KEEP(*(.comment))
140 } 144 }