[PATCH] ld/testsuite: skip ld-size when -shared is not supported
Clément Chigot
chigot@adacore.com
Wed Nov 9 16:26:11 GMT 2022
ld/ChangeLog:
* testsuite/ld-size/size.exp: Skip when -shared is not
supported.
---
ld/testsuite/ld-size/size.exp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/ld/testsuite/ld-size/size.exp b/ld/testsuite/ld-size/size.exp
index e15962886cd..64793c00948 100644
--- a/ld/testsuite/ld-size/size.exp
+++ b/ld/testsuite/ld-size/size.exp
@@ -33,6 +33,12 @@ if {!(([istarget "i?86-*-*"]
return
}
+# Skip when -shared is not supported
+if { ![check_shared_lib_support] } {
+ verbose "Size relocation tests not run - shared support disabled"
+ return
+}
+
# So as to avoid rewriting every last test case here in a nacl variant,
# we use black magic to massage the generic cases into nacl-variant cases.
if [istarget "*-*-nacl*"] {
--
2.25.1
More information about the Binutils
mailing list