From: Alan Modra Date: Sat, 28 Mar 2026 05:26:36 +0000 (+1030) Subject: remove arm-linux-gnu from supports_gnu_osabi X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e16bdea6719df4db518ddbeafd2281fb74ed5ca5;p=thirdparty%2Fbinutils-gdb.git remove arm-linux-gnu from supports_gnu_osabi arm-linux-gnueabi allows OS/ABI to be set to ELFOSABI_GNU, but plain arm-linux-gnu like arm-elf is ELFOSABI_ARM. --- diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp index 5026c0c0a9a..8683202a3cc 100644 --- a/binutils/testsuite/lib/binutils-common.exp +++ b/binutils/testsuite/lib/binutils-common.exp @@ -234,27 +234,33 @@ proc match_target { target } { # testcases will generally need to exclude tic6x or use a -m option.) # proc supports_gnu_osabi {} { - if { [istarget *-*-gnu*] + if { [istarget *-*-*eabi*] + || ([istarget *-*-freebsd*] && ![istarget {*-*-freebsd[89].*}]) + || [istarget *-*-genode*] + || [istarget *-*-rtems*] } { + return 1 + } + if { [istarget arm*-*-*] } { + return 0 + } + if { [istarget *-*-*bsd*] + || [istarget *-*-gnu*] + || [istarget *-*-irix*] || [istarget *-*-linux*] - || ( [istarget *-*-*bsd*] && ![istarget arm*-*-netbsd*] ) || [istarget *-*-lynxos] - || ( [istarget *-*-nto*] && ![istarget arm*-*-*] ) - || [istarget *-*-irix*] - || [istarget *-*-*eabi*] - || [istarget *-*-rtems*] } { + || [istarget *-*-nto*] } { return 1 } - if { [istarget "wasm32*-*-*"] } { + if { [istarget wasm32*-*-*] } { return 1 } - if { ![istarget "*-*-elf*"] } { + if { ![istarget *-*-elf*] } { return 0 } - if { [istarget "arm*-*-*"] - || [istarget "msp430-*-*"] - || [istarget "hppa-unknown-elf"] - || [istarget "kvx*-*-*"] - || [istarget "visium-*-*"] } { + if { [istarget hppa-*-*] + || [istarget kvx*-*-*] + || [istarget msp430-*-*] + || [istarget visium-*-*] } { return 0 } return 1