public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] ld/testsuite: skip ld-size when -shared is not supported
@ 2022-11-09 16:26 Clément Chigot
  2022-11-09 21:37 ` Alan Modra
  0 siblings, 1 reply; 4+ messages in thread
From: Clément Chigot @ 2022-11-09 16:26 UTC (permalink / raw)
  To: binutils; +Cc: Clément Chigot

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-11-10  9:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-09 16:26 [PATCH] ld/testsuite: skip ld-size when -shared is not supported Clément Chigot
2022-11-09 21:37 ` Alan Modra
2022-11-10  7:54   ` Clément Chigot
2022-11-10  9:00     ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).