diff options
author | Maciej W. Rozycki <macro@imgtec.com> | 2017-08-30 22:55:14 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@imgtec.com> | 2017-08-30 22:55:14 +0100 |
commit | 5dda32094f668a3e9738ea9b3aaea530d2bba7cb (patch) | |
tree | 91b8ad19abf47fa97d8e814f5a3a9537e979c304 /ld | |
parent | f493882dab762fb49ecb8685c18a85edfab5e6d3 (diff) | |
download | fsf-binutils-gdb-5dda32094f668a3e9738ea9b3aaea530d2bba7cb.zip fsf-binutils-gdb-5dda32094f668a3e9738ea9b3aaea530d2bba7cb.tar.gz fsf-binutils-gdb-5dda32094f668a3e9738ea9b3aaea530d2bba7cb.tar.bz2 |
LD/testsuite: Also discard `.MIPS.options' in orphan tests
Complement commit 5b5f4e6f8cd2 ("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.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/orphan-11.ld | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 8b01f54..1dcb981 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,10 @@ 2017-08-30 Maciej W. Rozycki <macro@imgtec.com> + * testsuite/ld-elf/orphan-11.ld: Also discard `.MIPS.options' + sections. + +2017-08-30 Maciej W. Rozycki <macro@imgtec.com> + * testsuite/ld-mips-elf/bal-jalx-addend-micromips.d: New test. * testsuite/ld-mips-elf/bal-jalx-addend-micromips-n32.d: New test. diff --git a/ld/testsuite/ld-elf/orphan-11.ld b/ld/testsuite/ld-elf/orphan-11.ld index 74c7789..b72f7d4 100644 --- a/ld/testsuite/ld-elf/orphan-11.ld +++ b/ld/testsuite/ld-elf/orphan-11.ld @@ -10,7 +10,7 @@ SECTIONS .rel : { *(.rel .rel.*) } /DISCARD/ : { - *(.reginfo) *(.MIPS.abiflags) *(.trampolines) *(.iplt*) - *(.note*) *(.got*) *(.igot*) *(.*.attributes) *(.*.info) + *(.reginfo) *(.MIPS.abiflags) *(.MIPS.options) *(.trampolines) + *(.iplt*) *(.note*) *(.got*) *(.igot*) *(.*.attributes) *(.*.info) *(.pdr) "linker stubs*"(*) } } |