mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
MIPS: emulate -ffunction-sections with macros in mmu-mips
Using a macro to put each function in its own .icode-based section allows us to put the functions in IRAM _and_ have linker GC. This removes a troublesome #ifdef BOOTLOADER_SPL on the X1000 target. Change-Id: Ia7b59778f5c36b7970dee4280547e434a1f4fc5a
This commit is contained in:
parent
c37555d30d
commit
d6220f618b
6 changed files with 12 additions and 21 deletions
|
|
@ -26,6 +26,7 @@ SECTIONS
|
|||
{
|
||||
*(.init.text);
|
||||
*(.text*);
|
||||
*(.icode*);
|
||||
} > TCSM
|
||||
|
||||
. = ALIGN(4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue