mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
d5f4da5e33
On many targets, like x86, .rel.dyn/.rela.dyn section is combined from different .rel/.rela sections by -z combreloc. To discard dynamic relocation section, we need to discard .rel.* and .rela.* sections instead of .rel.dyn and .rela.dyn sections. Note: This test fails for targets which issue a warning when dynamic section is discarded. * testsuite/ld-elf/reloc-discard.ld: Discard .rel.* and .rela.* sections instead of .rel.dyn and .rela.dyn sections.
7 lines
150 B
Plaintext
7 lines
150 B
Plaintext
SECTIONS
|
|
{
|
|
/* .dynamic needs to go first with MIPS IRIX-style emulations. */
|
|
.dynamic : { *(.dynamic) }
|
|
/DISCARD/ : { *(.rel.*) *(.rela.*) }
|
|
}
|