[committed,11/16] MIPS/LD/testsuite: Fix MIPS16 interlinking test IRIX 6 regressions

Message ID alpine.DEB.2.21.2307280048000.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:07 a.m. UTC
  IRIX 6 does not have MIPS16 stub section support in its n32 linker 
scripts, causing such input sections to be propagated to the respective 
output sections rather than `.text', causing dump pattern mismatches.

Expect IRIX 6 to fail with n32 testing then, removing this regression:

mips-sgi-irix6  -FAIL: MIPS16 interlinking for local functions 1 (n32)

We may choose to update IRIX 6 n32 linker scripts sometime, as it seems 
a harmless change.

	ld/
	* testsuite/ld-mips-elf/mips-elf.exp: Expect IRIX 6 to fail with
	n32 `mips16-local-stubs-1' testing.
---
 ld/testsuite/ld-mips-elf/mips-elf.exp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

binutils-ld-test-mips16-local-stubs-1-irix6.diff
  

Patch

Index: binutils-gdb/ld/testsuite/ld-mips-elf/mips-elf.exp
===================================================================
--- binutils-gdb.orig/ld/testsuite/ld-mips-elf/mips-elf.exp
+++ binutils-gdb/ld/testsuite/ld-mips-elf/mips-elf.exp
@@ -1048,7 +1048,8 @@  if { $has_abi(o32) } {
 }
 
 run_dump_test_o32 "mips16-local-stubs-1"
-run_dump_test_n32 "mips16-local-stubs-1" [list [list name (n32)]]
+run_dump_test_n32 "mips16-local-stubs-1" [list [list name (n32)] \
+					       [list xfail *-*-irix6*]]
 
 set mips16_fp_stub_test [list \
     [list "Floating-point stub for mips16 functions" \