3a921b779a
* ld-discard/discard.exp: New. Test ld discard. * ld-discard/discard.ld: Likewise. * ld-discard/exit.s: Likewise. * ld-discard/extern.d: Likewise. * ld-discard/extern.s: Likewise. * ld-discard/start.d: Likewise. * ld-discard/start.s: Likewise. * ld-discard/static.d: Likewise. * ld-discard/static.s: Likewise.
9 lines
109 B
Text
9 lines
109 B
Text
ENTRY(_start)
|
|
SECTIONS
|
|
{
|
|
/* Sections to be discarded */
|
|
/DISCARD/ : {
|
|
*(.data.exit)
|
|
*(.text.exit)
|
|
}
|
|
}
|