[PATCH 1/2] ld/testsuite: skip ld-elf/exclude when -shared is not supported
Clément Chigot
chigot@adacore.com
Thu Oct 20 14:43:50 GMT 2022
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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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
}
--
2.25.1
More information about the Binutils
mailing list