[committed] MIPS/LD/testsuite: Fix IRIX dumps for n64 GOT relocation tests
Maciej W. Rozycki
macro@mips.com
Mon Jul 9 23:04:00 GMT 2018
Factor in the presence of a `.gnu.attributes' section at the end of the
respective dumps:
Disassembly of section .gnu.attributes:
0000000000000000 <.gnu.attributes>:
0: 41000000 bc0f 4 <__dso_displacement+0x4>
4: 0f676e75 jal d9db9d4 <__dso_displacement+0xd9db9d4>
8: 00010000 sll zero,at,0x0
c: 00070401 0x70401
and also ignore any trailing output with the IRIX variant of n64 GOT
relocation tests, like already done with the Linux and the embedded
ones, removing:
FAIL: MIPS ELF got reloc n64
FAIL: MIPS ELF xgot reloc n64
LD testsuite regressions with the `mips-sgi-irix6' target.
ld/
* testsuite/ld-mips-elf/elf-rel-got-n64.d: Add `#pass' at the
end.
* testsuite/ld-mips-elf/elf-rel-xgot-n64.d: Likewise.
---
ld/testsuite/ld-mips-elf/elf-rel-got-n64.d | 1 +
ld/testsuite/ld-mips-elf/elf-rel-xgot-n64.d | 1 +
2 files changed, 2 insertions(+)
binutils-ld-mips-test-irix-reloc-n64.diff
Index: binutils/ld/testsuite/ld-mips-elf/elf-rel-got-n64.d
===================================================================
--- binutils.orig/ld/testsuite/ld-mips-elf/elf-rel-got-n64.d 2018-07-08 22:47:10.000000000 +0100
+++ binutils/ld/testsuite/ld-mips-elf/elf-rel-got-n64.d 2018-07-08 22:52:32.317349250 +0100
@@ -323,3 +323,4 @@
10010684: 10000514 .*
10010688: 00000000 .*
\.\.\.
+#pass
Index: binutils/ld/testsuite/ld-mips-elf/elf-rel-xgot-n64.d
===================================================================
--- binutils.orig/ld/testsuite/ld-mips-elf/elf-rel-xgot-n64.d 2018-07-08 22:47:10.000000000 +0100
+++ binutils/ld/testsuite/ld-mips-elf/elf-rel-xgot-n64.d 2018-07-08 22:55:51.586873892 +0100
@@ -437,3 +437,4 @@
1001085c: 10000110 .*
10010860: 00000000 .*
10010864: 1001075c .*
+#pass
More information about the Binutils
mailing list