From: "H.J. Lu" <hjl.tools@gmail.com>
To: binutils@sourceware.org
Subject: Re: [PATCH] ld: Build libpr23169a.so with -z lazy
Date: Mon, 14 Aug 2023 08:42:19 -0700 [thread overview]
Message-ID: <CAMe9rOqOg8Bf8eYc=FNphY2sAD7GLoropTbTKK=h-L4mmHqLyQ@mail.gmail.com> (raw)
In-Reply-To: <20230807172603.33596-1-hjl.tools@gmail.com>
On Mon, Aug 7, 2023 at 10:26 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> 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.
> ---
> 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" \
> --
> 2.41.0
>
I am checking it in.
--
H.J.
prev parent reply other threads:[~2023-08-14 15:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-07 17:26 H.J. Lu
2023-08-14 15:42 ` H.J. Lu [this message]
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='CAMe9rOqOg8Bf8eYc=FNphY2sAD7GLoropTbTKK=h-L4mmHqLyQ@mail.gmail.com' \
--to=hjl.tools@gmail.com \
--cc=binutils@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).