MIPS: remove .MIPS.abiflags section

The abiflags data is only used to communicate ABI information to a
program loader -- you can see what info is stored with readelf -A.
Dropping it shaves 24 bytes off of every binary (including plugins).

Change-Id: Iae78eeffe5c840ff67717707fb94821d24aac8ec
This commit is contained in:
Aidan MacDonald 2021-04-25 16:17:33 +01:00
parent 7d0d32dbc6
commit d5695822a7
5 changed files with 17 additions and 0 deletions

View file

@ -299,6 +299,7 @@ SECTIONS
{
*(.eh_frame)
#ifdef CPU_MIPS
*(.MIPS.abiflags)
*(.rel.dyn)
#endif
}

View file

@ -111,6 +111,7 @@ SECTIONS
/DISCARD/ :
{
*(.MIPS.abiflags);
*(.eh_frame);
*(.rel.dyn);
}

View file

@ -91,4 +91,11 @@ SECTIONS
. += 0x400;
irqstackend = .;
} > IRAM
/DISCARD/ :
{
*(.MIPS.abiflags);
*(.eh_frame);
*(.rel.dyn);
}
}

View file

@ -113,6 +113,7 @@ SECTIONS
/DISCARD/ :
{
*(.MIPS.abiflags);
*(.eh_frame);
*(.rel.dyn);
}

View file

@ -57,4 +57,11 @@ SECTIONS
{
*(.sdram);
} > DRAM
/DISCARD/ :
{
*(.MIPS.abiflags);
*(.eh_frame);
*(.rel.dyn);
}
}