diff options
Diffstat (limited to 'apps/plugins/plugin.lds')
-rw-r--r-- | apps/plugins/plugin.lds | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/apps/plugins/plugin.lds b/apps/plugins/plugin.lds index 6b608fcc70..fcfbf3bfe0 100644 --- a/apps/plugins/plugin.lds +++ b/apps/plugins/plugin.lds @@ -231,11 +231,16 @@ SECTIONS . = ALIGN(CACHEALIGN_SIZE); *(.ncdata*) . = ALIGN(CACHEALIGN_SIZE); - } AT> PLUGIN_RAM -#endif - +/* EABI currently needs iramcopy defined here, otherwise .iram can sometimes + have an incorrect load address, breaking codecs. */ #if defined(IRAMSIZE) - iramcopy = . - NOCACHE_BASE; + iramcopy = . - NOCACHE_BASE; +#endif + } AT> PLUGIN_RAM +/* This definition is used when NOCACHE_BASE is 0. The address offset bug only + seems to occur when the empty .ncdata is present. */ +#elif defined(IRAMSIZE) + iramcopy = .; #endif /DISCARD/ : |