]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
remove arm-linux-gnu from supports_gnu_osabi
authorAlan Modra <amodra@gmail.com>
Sat, 28 Mar 2026 05:26:36 +0000 (15:56 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 2 Apr 2026 12:23:48 +0000 (22:53 +1030)
arm-linux-gnueabi allows OS/ABI to be set to ELFOSABI_GNU, but plain
arm-linux-gnu like arm-elf is ELFOSABI_ARM.

binutils/testsuite/lib/binutils-common.exp

index 5026c0c0a9a1184247263e6504b09643dad71014..8683202a3ccfe697bb9a25b575cc6960df0ec3ee 100644 (file)
@@ -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