forked from len0rd/rockbox
Fix codec and plugin issues on ARM EABI caused by .iram sometimes being assigned an incorrect load address.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23674 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6ec176cc8e
commit
19eb26a2d7
1 changed files with 9 additions and 4 deletions
|
@ -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/ :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue