From: Clément Chigot Date: Thu, 20 Oct 2022 13:31:24 +0000 (+0200) Subject: ld/testsuite: skip ld-elf/exclude when -shared is not supported X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13b87bbf0dad9c388ad6234df260ca0e497456c3;p=binutils-gdb.git ld/testsuite: skip ld-elf/exclude when -shared is not supported ld/ChangeLog: * testsuite/ld-elf/exclude.exp: Call check_shared_lib_support. to skip for all targets without shared lib support. --- diff --git a/ld/testsuite/ld-elf/exclude.exp b/ld/testsuite/ld-elf/exclude.exp index 1417ee1fefc..60e41eda3a9 100644 --- a/ld/testsuite/ld-elf/exclude.exp +++ b/ld/testsuite/ld-elf/exclude.exp @@ -26,8 +26,8 @@ if ![is_elf_format] { return } -# No shared lib support on this target. -if { [istarget "mcore-*-*"] } { +# Skip targets where -shared is not supported +if { ![check_shared_lib_support] } { return }