[binutils-gdb] amend supports_oa targets

Alan Modra amodra@sourceware.org
Sat Jan 24 03:23:40 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=18f58a203a0c241bf742a925e0265f052ed228e7

commit 18f58a203a0c241bf742a925e0265f052ed228e7
Author: Alan Modra <amodra@gmail.com>
Date:   Sat Jan 24 12:39:27 2026 +1030

    amend supports_oa targets
    
    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

Diff:
---
 binutils/testsuite/lib/binutils-common.exp | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp
index 03306c112f5..72cbf4a4e05 100644
--- a/binutils/testsuite/lib/binutils-common.exp
+++ b/binutils/testsuite/lib/binutils-common.exp
@@ -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*-*-*] } {


More information about the Binutils-cvs mailing list