mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-26 18:53:29 +08:00
5dda32094f
Complement commit 5b5f4e6f8c
("ld: Early detection of orphans we know
will be discarded") and add `.MIPS.options' to the list of sections
discarded with orphan tests, removing failures like:
./ld-new: error: unplaced orphan section `.MIPS.options' from `tmpdir/orphan-11.o'.
FAIL: ld-elf/orphan-11
and:
./ld-new: error: unplaced orphan section `.MIPS.options' from `tmpdir/orphan-12.o'.
FAIL: ld-elf/orphan-12
from n64 MIPS testing.
ld/
* testsuite/ld-elf/orphan-11.ld: Also discard `.MIPS.options'
sections.
17 lines
469 B
Plaintext
17 lines
469 B
Plaintext
SECTIONS
|
|
{
|
|
. = SIZEOF_HEADERS;
|
|
.text : { *(.text .text.*) }
|
|
.data : { *(.data .data.*) }
|
|
.bss : { *(.bss .bss.*) *(COMMON) }
|
|
.sbss : { *(.sbss .sbss.*) }
|
|
.note : { *(.note .note.*) }
|
|
.rela : { *(.rela .rela.*) }
|
|
.rel : { *(.rel .rel.*) }
|
|
|
|
/DISCARD/ : {
|
|
*(.reginfo) *(.MIPS.abiflags) *(.MIPS.options) *(.trampolines)
|
|
*(.iplt*) *(.note*) *(.got*) *(.igot*) *(.*.attributes) *(.*.info)
|
|
*(.pdr) "linker stubs*"(*) }
|
|
}
|