]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
amend supports_oa targets
authorAlan Modra <amodra@gmail.com>
Sat, 24 Jan 2026 02:09:27 +0000 (12:39 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 24 Jan 2026 03:23:09 +0000 (13:53 +1030)
Add vxworks and windiss to supported targets.  is_elf_target excludes
them as a hack to work around multiple other elf test failures.

On these targets, fixes
FAIL: GNU attributes v1/v2: no support for directive .gnu_attribute

binutils/testsuite/lib/binutils-common.exp

index 03306c112f5c99aa869709ccbfa0f4651306dc6e..72cbf4a4e053395d041bf6fafeb5535077a9dc3d 100644 (file)
@@ -509,7 +509,8 @@ proc gas_sframe_check {} {
 
 # Whether a target supports Object Attributes v1
 proc supports_oa_v1 {} {
-    if { ! [is_elf_format] } {
+    if { ![is_elf_format]
+        && ![istarget *-*-vxworks*] && ![istarget *-*-windiss*] } {
        return 0
     }
     if { [istarget arc-*-*]
@@ -531,7 +532,8 @@ proc supports_oa_v1 {} {
 
 # Whether a target supports Object Attributes v2
 proc supports_oa_v2 {} {
-    if { ! [is_elf_format] } {
+    if { ![is_elf_format]
+        && ![istarget *-*-vxworks*] && ![istarget *-*-windiss*] } {
        return 0
     }
     if { [istarget aarch64*-*-*] } {