diff options
Diffstat (limited to 'apps/plugins/plugin.lds')
| -rw-r--r-- | apps/plugins/plugin.lds | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index ccf6010..e7ed9b1 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds @@ -125,7 +125,10 @@ OUTPUT_FORMAT(elf32-littlemips) #ifdef CODEC #define THIS_LENGTH CODEC_SIZE #define THIS_ORIGIN CODEC_ORIGIN -#else +#elif defined OVERLAY_OFFSET +#define THIS_LENGTH (DRAMSIZE - OVERLAY_OFFSET) +#define THIS_ORIGIN (DRAMORIG + OVERLAY_OFFSET) +#else /* plugin */ #define THIS_LENGTH PLUGIN_LENGTH #define THIS_ORIGIN PLUGIN_ORIGIN #endif |