]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld/testsuite: skip ld-size when -shared is not supported
authorClément Chigot <chigot@adacore.com>
Wed, 9 Nov 2022 16:21:03 +0000 (17:21 +0100)
committerClément Chigot <chigot@adacore.com>
Thu, 10 Nov 2022 12:19:15 +0000 (13:19 +0100)
ld/ChangeLog:

        * testsuite/ld-size/size.exp: Skip when -shared is not
supported.

ld/testsuite/ld-size/size.exp

index e15962886cdb5ee2f3408406aa4e17bb5e6a8c90..64793c009484609d3ea384c51cc31be908fc9a8a 100644 (file)
@@ -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*"] {