aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite/lib
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2026-03-28 15:56:36 +1030
committerAlan Modra <amodra@gmail.com>2026-04-02 22:53:48 +1030
commite16bdea6719df4db518ddbeafd2281fb74ed5ca5 (patch)
tree8f836c0c355ccc35d085c925cfed3b51b3cc5ca9 /binutils/testsuite/lib
parent3e17d19c890b262ebb62bcc0d40e38456dc408d1 (diff)
downloadbinutils-e16bdea6719df4db518ddbeafd2281fb74ed5ca5.tar.gz
binutils-e16bdea6719df4db518ddbeafd2281fb74ed5ca5.tar.bz2
binutils-e16bdea6719df4db518ddbeafd2281fb74ed5ca5.zip
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.
Diffstat (limited to 'binutils/testsuite/lib')
-rw-r--r--binutils/testsuite/lib/binutils-common.exp32
1 files 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