diff options
-rw-r--r-- | ld/testsuite/ld-ctf/ctf.exp | 5 | ||||
-rw-r--r-- | ld/testsuite/ld-plugin/lto.exp | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/testsuite/ld-ctf/ctf.exp b/ld/testsuite/ld-ctf/ctf.exp index 0e74d6c..7f54007 100644 --- a/ld/testsuite/ld-ctf/ctf.exp +++ b/ld/testsuite/ld-ctf/ctf.exp @@ -28,6 +28,11 @@ if ![is_elf_format] { return 0 } +if ![check_shared_lib_support] { + unsupported "CTF needs shared lib support" + return 0 +} + if {[info exists env(LC_ALL)]} { set old_lc_all $env(LC_ALL) } 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" \ "" \ |