aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ld/testsuite/ld-size/size.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/testsuite/ld-size/size.exp b/ld/testsuite/ld-size/size.exp
index e159628..64793c0 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*"] {