From 02e0be69012aee9aac0c7adbba1b0516b4dc9218 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 5 Feb 2020 16:19:17 +1030 Subject: mbind gas tests and supports_gnu_osabi testsuite infrastructure With the addition of section16 tests we have multiple tests advertising themselves as "mbind sections" and "mbind section contents". This patch fixes that, and fails on quite a few targets that force an OSABI value. It's a pain specifying all the relevant arm targets on an xfail line, so I wrote supports_gnu_osabi. binutils/ * testsuite/lib/binutils-common.exp (match_target): Accept '!' before TCL procedure. (supports_gnu_osabi): New procedure. (is_generic): New, from ld-lib.exp. (supports_gnu_unique): Use the above. gas/ * testsuite/gas/elf/section12a.d: Use supports_gnu_osabi in xfail, and rename test. * testsuite/gas/elf/section12b.d: Likewise. * testsuite/gas/elf/section16a.d: Likewise. * testsuite/gas/elf/section16b.d: Likewise. ld/ * testsuite/lib/ld-lib.exp (is_generic): Delete. * testsuite/ld-unique/unique.exp: Exclude tic6x. --- ld/testsuite/lib/ld-lib.exp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'ld/testsuite/lib') diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index 6752a76..bed5add 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -1088,18 +1088,6 @@ proc check_gc_sections_available { } { return $gc_sections_available_saved } -# Return true if target uses the generic_link_hash_table linker. -proc is_generic { } { - if { [istarget "d30v-*-*"] - || [istarget "dlx-*-*"] - || [istarget "pj*-*-*"] - || [istarget "s12z-*-*"] - || [istarget "xgate-*-*"] } { - return 1 - } - return 0 -} - # Return true if target uses genelf.em. proc uses_genelf { } { if { [istarget "d30v-*-*"] -- cgit v1.1