[binutils-gdb] remove arm-linux-gnu from supports_gnu_osabi
Alan Modra
amodra@sourceware.org
Thu Apr 2 12:24:08 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e16bdea6719df4db518ddbeafd2281fb74ed5ca5
commit e16bdea6719df4db518ddbeafd2281fb74ed5ca5
Author: Alan Modra <amodra@gmail.com>
Date: Sat Mar 28 15:56:36 2026 +1030
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:
---
binutils/testsuite/lib/binutils-common.exp | 32 ++++++++++++++++++------------
1 file changed, 19 insertions(+), 13 deletions(-)
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
More information about the Binutils-cvs
mailing list