forked from len0rd/rockbox
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:
parent
7d0d32dbc6
commit
d5695822a7
5 changed files with 17 additions and 0 deletions
|
|
@ -299,6 +299,7 @@ SECTIONS
|
||||||
{
|
{
|
||||||
*(.eh_frame)
|
*(.eh_frame)
|
||||||
#ifdef CPU_MIPS
|
#ifdef CPU_MIPS
|
||||||
|
*(.MIPS.abiflags)
|
||||||
*(.rel.dyn)
|
*(.rel.dyn)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -111,6 +111,7 @@ SECTIONS
|
||||||
|
|
||||||
/DISCARD/ :
|
/DISCARD/ :
|
||||||
{
|
{
|
||||||
|
*(.MIPS.abiflags);
|
||||||
*(.eh_frame);
|
*(.eh_frame);
|
||||||
*(.rel.dyn);
|
*(.rel.dyn);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -91,4 +91,11 @@ SECTIONS
|
||||||
. += 0x400;
|
. += 0x400;
|
||||||
irqstackend = .;
|
irqstackend = .;
|
||||||
} > IRAM
|
} > IRAM
|
||||||
|
|
||||||
|
/DISCARD/ :
|
||||||
|
{
|
||||||
|
*(.MIPS.abiflags);
|
||||||
|
*(.eh_frame);
|
||||||
|
*(.rel.dyn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -113,6 +113,7 @@ SECTIONS
|
||||||
|
|
||||||
/DISCARD/ :
|
/DISCARD/ :
|
||||||
{
|
{
|
||||||
|
*(.MIPS.abiflags);
|
||||||
*(.eh_frame);
|
*(.eh_frame);
|
||||||
*(.rel.dyn);
|
*(.rel.dyn);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -57,4 +57,11 @@ SECTIONS
|
||||||
{
|
{
|
||||||
*(.sdram);
|
*(.sdram);
|
||||||
} > DRAM
|
} > DRAM
|
||||||
|
|
||||||
|
/DISCARD/ :
|
||||||
|
{
|
||||||
|
*(.MIPS.abiflags);
|
||||||
|
*(.eh_frame);
|
||||||
|
*(.rel.dyn);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue