public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Link x86-64 mark-plt-1.so with --no-as-needed
@ 2024-02-06  7:02 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2024-02-06  7:02 UTC (permalink / raw)
  To: binutils

Fixes
FAIL: Build mark-plt-1.so
where gcc is built with default --as-needed.

	* testsuite/ld-x86-64/x86-64.exp (Build mark-plt-1.so): Pass
	--no-as-needed.

diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp
index a1a0422cea2..e370f393a7a 100644
--- a/ld/testsuite/ld-x86-64/x86-64.exp
+++ b/ld/testsuite/ld-x86-64/x86-64.exp
@@ -2263,7 +2263,7 @@ if { [check_compiler_available] } {
     run_cc_link_tests [list \
 	[list \
 	    "Build mark-plt-1.so" \
-	    "-shared -Wl,-z,mark-plt,-z,pack-relative-relocs" \
+	    "-shared -Wl,--no-as-needed,-z,mark-plt,-z,pack-relative-relocs" \
 	    "-fPIC" \
 	    { mark-plt-1.s } \
 	    {{readelf {-W --version-info} mark-plt-1a.rd} \

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-06  7:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-06  7:02 Link x86-64 mark-plt-1.so with --no-as-needed 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).