diff options
Diffstat (limited to 'ld/testsuite/ld-plugin/plugin.exp')
-rw-r--r-- | ld/testsuite/ld-plugin/plugin.exp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ld/testsuite/ld-plugin/plugin.exp b/ld/testsuite/ld-plugin/plugin.exp index a8b0e4a..5be5661 100644 --- a/ld/testsuite/ld-plugin/plugin.exp +++ b/ld/testsuite/ld-plugin/plugin.exp @@ -183,11 +183,15 @@ set plugin_tests [list \ $testobjfiles $libs" "" "" "" {{ld plugin-28.d}} "main.x" ] \ [list "plugin warning" "-plugin $plugin2_path -plugin-opt warning \ $testobjfiles $libs" "" "" "" {{ld plugin-29.d}} "main.x" ] \ - [list "PR ld/17973" "-plugin $plugin2_path -shared $regassilent \ - -plugin-opt add:tmpdir/pr17973.o \ - tmpdir/dummy.o" "" "" "" {{readelf -sW pr17973.d}} "main.x" ] \ ] +if [check_shared_lib_support] { + lappend plugin_tests [list "PR ld/17973" "-plugin $plugin2_path -shared $regassilent \ + -plugin-opt add:tmpdir/pr17973.o \ + tmpdir/dummy.o" "" "" "" {{readelf -sW pr17973.d}} "main.x" ] +} + + set plugin_lib_tests [list \ [list "plugin ignore lib" "-plugin $plugin_path $regclm \ $regas $regcln -plugin-opt claim:tmpdir/func.o \ |