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:
Aidan MacDonald 2021-04-25 13:43:58 +01:00
parent c37555d30d
commit d6220f618b
6 changed files with 12 additions and 21 deletions

View file

@ -26,6 +26,7 @@ SECTIONS
{
*(.init.text);
*(.text*);
*(.icode*);
} > TCSM
. = ALIGN(4);