mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -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
|
|
@ -66,7 +66,7 @@ SECTIONS
|
|||
KEEP(*(.vectors.4));
|
||||
KEEP(*(.vectors));
|
||||
|
||||
*(.icode);
|
||||
*(.icode*);
|
||||
*(.irodata);
|
||||
*(.idata);
|
||||
KEEP(*(.vectors))
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ SECTIONS
|
|||
KEEP(*(.vectors.4));
|
||||
KEEP(*(.vectors));
|
||||
|
||||
*(.icode);
|
||||
*(.icode*);
|
||||
*(.irodata);
|
||||
*(.idata);
|
||||
KEEP(*(.vectors*))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue