aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorA. Wilcox <awilfox@adelielinux.org>2023-10-05 12:13:08 +0100
committerNick Clifton <nickc@redhat.com>2023-10-05 12:13:08 +0100
commit41ef7afa97212aa219b90b72c4f363eac0aaae40 (patch)
tree9f22c1c80626f6371aba31119925b9bf024f0733 /ld/testsuite
parent0515a7b643c6f7bbfb647764b702d4c6445618e8 (diff)
downloadfsf-binutils-gdb-41ef7afa97212aa219b90b72c4f363eac0aaae40.zip
fsf-binutils-gdb-41ef7afa97212aa219b90b72c4f363eac0aaae40.tar.gz
fsf-binutils-gdb-41ef7afa97212aa219b90b72c4f363eac0aaae40.tar.bz2
Fix: ld testsuite: 'Version' pattern grabs 'Version5 EABI', breaking test on arm-linux-musleabihf
PR 30924 * testsuite/ld-elfvers/vers.exp (objdump_emptyverstuff): Handle EABI version information in objdump's output.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-elfvers/vers.exp6
1 files changed, 4 insertions, 2 deletions
diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp
index b266cc0..73c1f79 100644
--- a/ld/testsuite/ld-elfvers/vers.exp
+++ b/ld/testsuite/ld-elfvers/vers.exp
@@ -215,12 +215,14 @@ proc objdump_emptyverstuff { objdump object } {
# this probably means that there is version information in libc, so we
# can't really perform this test.
return 1
+ } else { if { [string match "*Version? EABI*" $exec_output] } then {
+# there is EABI Version information in the private flags of the binary.
+ return 1
} else {
verbose -log "$exec_output"
verbose -log "objdump_emptyverstuff: did not expect any output from objdump"
return 0
- } }
-
+ } } }
}
#