From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7919) id 310D938582AE; Wed, 20 Dec 2023 02:38:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 310D938582AE Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Sam James To: bfd-cvs@sourceware.org Subject: [binutils-gdb/binutils-2_41-branch] ld: Build libpr23169a.so with -z lazy X-Act-Checkin: binutils-gdb X-Git-Author: H.J. Lu X-Git-Refname: refs/heads/binutils-2_41-branch X-Git-Oldrev: 83d5e7b750556c9c7389a888bf1e3bfc33622b58 X-Git-Newrev: 34d8c9d5b4e4fc62bea212b6bd046f26a177df4c Message-Id: <20231220023800.310D938582AE@sourceware.org> Date: Wed, 20 Dec 2023 02:38:00 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Dec 2023 02:38:00 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D34d8c9d5b4e4= fc62bea212b6bd046f26a177df4c commit 34d8c9d5b4e4fc62bea212b6bd046f26a177df4c Author: H.J. Lu Date: Mon Aug 7 10:23:16 2023 -0700 ld: Build libpr23169a.so with -z lazy =20 pr23169b test only works with lazy binding. To work with linker which disables lazy binding by default, build pr23169b binaries with -z lazy. =20 PR ld/30698 * ld-ifunc/ifunc.exp: Build pr23169b binaries with -z lazy. =20 (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" \