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)
|
||||
#ifdef CPU_MIPS
|
||||
*(.MIPS.abiflags)
|
||||
*(.rel.dyn)
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -111,6 +111,7 @@ SECTIONS
|
|||
|
||||
/DISCARD/ :
|
||||
{
|
||||
*(.MIPS.abiflags);
|
||||
*(.eh_frame);
|
||||
*(.rel.dyn);
|
||||
}
|
||||
|
|
|
@ -91,4 +91,11 @@ SECTIONS
|
|||
. += 0x400;
|
||||
irqstackend = .;
|
||||
} > IRAM
|
||||
|
||||
/DISCARD/ :
|
||||
{
|
||||
*(.MIPS.abiflags);
|
||||
*(.eh_frame);
|
||||
*(.rel.dyn);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -113,6 +113,7 @@ SECTIONS
|
|||
|
||||
/DISCARD/ :
|
||||
{
|
||||
*(.MIPS.abiflags);
|
||||
*(.eh_frame);
|
||||
*(.rel.dyn);
|
||||
}
|
||||
|
|
|
@ -57,4 +57,11 @@ SECTIONS
|
|||
{
|
||||
*(.sdram);
|
||||
} > DRAM
|
||||
|
||||
/DISCARD/ :
|
||||
{
|
||||
*(.MIPS.abiflags);
|
||||
*(.eh_frame);
|
||||
*(.rel.dyn);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue