[binutils-gdb] x86: restrict recently added ifunc gas tests

Jan Beulich jbeulich@sourceware.org
Mon Jan 19 09:45:37 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=83f8e91b01948303c448a3ba42d8ee078a58697a

commit 83f8e91b01948303c448a3ba42d8ee078a58697a
Author: Jan Beulich <jbeulich@suse.com>
Date:   Mon Jan 19 10:42:47 2026 +0100

    x86: restrict recently added ifunc gas tests
    
    These will fail on Solaris and other non-GNU targets.

Diff:
---
 gas/testsuite/gas/i386/i386.exp       | 9 ++++++---
 gas/testsuite/gas/i386/x86-64-ifunc.d | 1 +
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index b52d86d6d4f..f63f5df703e 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -741,12 +741,15 @@ if [gas_32_check] then {
 	run_dump_test "intel-cmps16"
 	run_list_test "inval-equ-1" "-al"
 	run_list_test "inval-equ-2" "-al"
-	run_dump_test "ifunc"
-	run_list_test "ifunc-2"
-	run_dump_test "ifunc-3"
 	run_dump_test "localpic"
 	run_dump_test "debug1"
 
+	if {[supports_gnu_osabi]} then {
+	    run_dump_test "ifunc"
+	    run_list_test "ifunc-2"
+	    run_dump_test "ifunc-3"
+	}
+
 	run_dump_test "dwarf2-line-1"
 	run_dump_test "dwarf2-line-2"
 	run_dump_test "dwarf2-line-3"
diff --git a/gas/testsuite/gas/i386/x86-64-ifunc.d b/gas/testsuite/gas/i386/x86-64-ifunc.d
index bf81bd11d70..bf02de7b799 100644
--- a/gas/testsuite/gas/i386/x86-64-ifunc.d
+++ b/gas/testsuite/gas/i386/x86-64-ifunc.d
@@ -1,6 +1,7 @@
 #source: ifunc.s
 #objdump: -drw
 #name: x86-64 ifunc
+#target: [supports_gnu_osabi]
 
 .*: +file format .*


More information about the Binutils-cvs mailing list