[committed 08/16] MIPS/LD/testsuite: Run `got-dump-1' for o32/n32 ABIs

Maciej W. Rozycki macro@orcam.me.uk
Fri Jul 28 05:07:07 GMT 2023


The `got-dump-1' test case uses 32-bit addressing, so it makes no sense 
to run it with the n64 ABI.  And there is a corresponding `got-dump-2' 
test already for the n64 ABI.

Use the per-ABI framework then to run the `got-dump-1' test explicitly 
for o32 and n32 ABIs only.

	ld/
	* testsuite/ld-mips-elf/mips-elf.exp: Run `got-dump-1' for o32 
	and n32 ABIs only.
---
 ld/testsuite/ld-mips-elf/mips-elf.exp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

binutils-mips-ld-test-got-dump-1-n64.diff
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
@@ -856,7 +856,8 @@ if { $linux_gnu } {
 	     "got-page-7b.so"}
 	}]
     }
-    run_dump_test "got-dump-1"
+    run_dump_test_o32 "got-dump-1"
+    run_dump_test_n32 "got-dump-1" [list [list name (n32)]]
     run_dump_test_n64 "got-dump-2" noarch
     run_dump_test "reloc-estimate-1"
 }


More information about the Binutils mailing list