summaryrefslogtreecommitdiff
path: root/apps/plugins/plugin.lds
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/plugin.lds')
-rw-r--r--apps/plugins/plugin.lds11
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds
index 3e624d6..d0ddb78 100644
--- a/apps/plugins/plugin.lds
+++ b/apps/plugins/plugin.lds
@@ -23,19 +23,22 @@ OUTPUT_FORMAT(elf32-sh)
#endif
#define PLUGIN_LENGTH PLUGIN_BUFFER_SIZE
+#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - CODEC_SIZE
+#define CODEC_ORIGIN (DRAMORIG + (DRAMSIZE))
+#define PLUGIN_ORIGIN (CODEC_ORIGIN + CODEC_SIZE)
+
#ifdef CODEC
#define THIS_LENGTH CODEC_SIZE
+#define THIS_ORIGIN CODEC_ORIGIN
#else
#define THIS_LENGTH PLUGIN_LENGTH
+#define THIS_ORIGIN PLUGIN_ORIGIN
#endif
-#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGIN_LENGTH - CODEC_SIZE
-#define PLUGIN_ORIGIN (DRAMORIG + (DRAMSIZE))
-
MEMORY
{
- PLUGIN_RAM : ORIGIN = PLUGIN_ORIGIN, LENGTH = THIS_LENGTH
+ PLUGIN_RAM : ORIGIN = THIS_ORIGIN, LENGTH = THIS_LENGTH
#ifdef IRIVER_H100
PLUGIN_IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
#endif