public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
From: Sam James <sjames@sourceware.org>
To: bfd-cvs@sourceware.org
Subject: [binutils-gdb/binutils-2_41-branch] ld: Build libpr23169a.so with -z lazy
Date: Wed, 20 Dec 2023 02:38:00 +0000 (GMT)	[thread overview]
Message-ID: <20231220023800.310D938582AE@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=34d8c9d5b4e4fc62bea212b6bd046f26a177df4c

commit 34d8c9d5b4e4fc62bea212b6bd046f26a177df4c
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Mon Aug 7 10:23:16 2023 -0700

    ld: Build libpr23169a.so with -z lazy
    
    pr23169b test only works with lazy binding.  To work with linker which
    disables lazy binding by default, build pr23169b binaries with -z lazy.
    
            PR ld/30698
            * ld-ifunc/ifunc.exp: Build pr23169b binaries with -z lazy.
    
    (cherry picked from commit 51dd9e7c4cab13748f31f6575aed0672f03d6710)

Diff:
---
 ld/testsuite/ld-ifunc/ifunc.exp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ld/testsuite/ld-ifunc/ifunc.exp b/ld/testsuite/ld-ifunc/ifunc.exp
index edabcc3f744..2bf656e73b2 100644
--- a/ld/testsuite/ld-ifunc/ifunc.exp
+++ b/ld/testsuite/ld-ifunc/ifunc.exp
@@ -604,7 +604,7 @@ run_cc_link_tests [list \
     ] \
     [list \
 	"Build libpr23169a.so" \
-	"-shared" \
+	"-shared -Wl,-z,lazy" \
 	"-fPIC -O2 -g" \
 	{ pr23169a.c } \
 	{} \
@@ -751,7 +751,7 @@ run_ld_link_exec_tests [list \
     ] \
     [list \
 	"Run pr23169b" \
-	"-pie -Wl,--no-as-needed tmpdir/libpr23169a.so" \
+	"-pie -Wl,--no-as-needed,-z,lazy tmpdir/libpr23169a.so" \
 	"" \
 	{ pr23169b.c pr23169c.c } \
 	"pr23169b" \

                 reply	other threads:[~2023-12-20  2:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231220023800.310D938582AE@sourceware.org \
    --to=sjames@sourceware.org \
    --cc=bfd-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).