[committed,06/16] MIPS/LD/testsuite: Fix `attr-gnu-4-10' failures with IRIX targets

Message ID alpine.DEB.2.21.2307271833010.10240@angie.orcam.me.uk
State Unresolved
Headers
Series MIPS: Revert the change of `mipsisa64*-*-linux*' semantics |

Checks

Context Check Description
snail/binutils-gdb-check warning Git am fail log

Commit Message

Maciej W. Rozycki July 28, 2023, 5:06 a.m. UTC
  IRIX targets do not enable the production of a `.pdr' section in GAS by 
default, which causes a failure with the `attr-gnu-4-10' test case due 
to a difference resulting in the number and indices of sections produced
in linker output.

As the presence or absence of this section is not relevant to this test 
case, just enable it unconditionally, fixing these regressions:

mips-sgi-irix5  -FAIL: ld-mips-elf/attr-gnu-4-10
mips-sgi-irix6  -FAIL: ld-mips-elf/attr-gnu-4-10

	ld/
	* testsuite/ld-mips-elf/attr-gnu-4-10.d: Add `as' tag with 
	`-mpdr'.
---
 ld/testsuite/ld-mips-elf/attr-gnu-4-10.d |    1 +
 1 file changed, 1 insertion(+)

binutils-mips-ld-test-irix-pdr.diff
  

Patch

Index: binutils-gdb/ld/testsuite/ld-mips-elf/attr-gnu-4-10.d
===================================================================
--- binutils-gdb.orig/ld/testsuite/ld-mips-elf/attr-gnu-4-10.d
+++ binutils-gdb/ld/testsuite/ld-mips-elf/attr-gnu-4-10.d
@@ -1,5 +1,6 @@ 
 #source: attr-gnu-4-1.s
 #source: attr-gnu-4-0.s
+#as: -mpdr
 #ld: -r
 #readelf: -hA