This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed] LD/testsuite: Also discard `.MIPS.options' in orphan tests
- From: "Maciej W. Rozycki" <macro at imgtec dot com>
- To: <binutils at sourceware dot org>
- Date: Wed, 30 Aug 2017 22:56:58 +0100
- Subject: [committed] LD/testsuite: Also discard `.MIPS.options' in orphan tests
- Authentication-results: sourceware.org; auth=none
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.
---
ld/testsuite/ld-elf/orphan-11.ld | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
binutils-mips64-ld-test-orphan-fix.diff
Index: binutils/ld/testsuite/ld-elf/orphan-11.ld
===================================================================
--- binutils.orig/ld/testsuite/ld-elf/orphan-11.ld 2017-08-24 20:36:15.000000000 +0100
+++ binutils/ld/testsuite/ld-elf/orphan-11.ld 2017-08-25 15:10:05.064714872 +0100
@@ -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*"(*) }
}