ld/testsuite: skip ld-elf/exclude when -shared is not supported
authorClément Chigot <chigot@adacore.com>
Thu, 20 Oct 2022 13:31:24 +0000 (15:31 +0200)
committerClément Chigot <chigot@adacore.com>
Mon, 24 Oct 2022 12:05:48 +0000 (14:05 +0200)
ld/ChangeLog:

* testsuite/ld-elf/exclude.exp: Call check_shared_lib_support.
to skip for all targets without shared lib support.

ld/testsuite/ld-elf/exclude.exp

index 1417ee1fefc630e4f01c812279640199f72b344a..60e41eda3a9668c24f2ef05a314a10e7fbee462b 100644 (file)
@@ -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
 }