LD/testsuite: Also discard `.MIPS.options' in orphan tests
authorMaciej W. Rozycki <macro@imgtec.com>
Wed, 30 Aug 2017 21:55:14 +0000 (22:55 +0100)
committerMaciej W. Rozycki <macro@imgtec.com>
Wed, 30 Aug 2017 21:55:14 +0000 (22:55 +0100)
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/ChangeLog
ld/testsuite/ld-elf/orphan-11.ld

index 8b01f54254920cd7fa9fd514b478cbf9352d487f..1dcb981353b787953d3db47848cd5093f71fd64d 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 74c77894570cecd6568da78a8e953a31b8e3e1cc..b72f7d4c4488f265e4cfb821442d00f079a214c7 100644 (file)
@@ -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*"(*)  }
 }
This page took 0.027636 seconds and 4 git commands to generate.