aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin
diff options
context:
space:
mode:
authorjiawei <jiawei@iscas.ac.cn>2021-12-23 14:19:58 +0800
committerNelson Chu <nelson.chu@sifive.com>2021-12-28 12:14:32 +0800
commit4748764aaba89b8515cbf8918dc0ada840cdfab7 (patch)
tree7d88f2ca49ce6e3d1d7bdb7729f62636ef7658f4 /ld/testsuite/ld-plugin
parentd4ff0c5d0065bf4f180524022b10f4b4a3e2c378 (diff)
downloadgdb-4748764aaba89b8515cbf8918dc0ada840cdfab7.zip
gdb-4748764aaba89b8515cbf8918dc0ada840cdfab7.tar.gz
gdb-4748764aaba89b8515cbf8918dc0ada840cdfab7.tar.bz2
ld: Fix testcase errors due to -shared not support.
Reviewed-by: Jim Wilson <jim.wilson.gcc@gmail.com> ld/ChangeLog: * testsuite/ld-ctf/ctf.exp: Add shared lib check. * testsuite/ld-plugin/lto.exp: Add lto shared check.
Diffstat (limited to 'ld/testsuite/ld-plugin')
-rw-r--r--ld/testsuite/ld-plugin/lto.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp
index 51e0104..e63e791 100644
--- a/ld/testsuite/ld-plugin/lto.exp
+++ b/ld/testsuite/ld-plugin/lto.exp
@@ -233,7 +233,7 @@ set lto_link_tests [list \
[list [list "nm" "$plug_opt" "pr26389.d"]]] \
]
-if { [at_least_gcc_version 10 0] } {
+if { [at_least_gcc_version 10 0] && [check_lto_shared_available] } {
set lto_link_tests [concat $lto_link_tests [list \
[list "pr25355.o" \
"" \