From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 84E393858C56 for ; Sun, 6 Nov 2022 23:12:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 84E393858C56 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Content-Type: multipart/signed; boundary="Apple-Mail=_E6EB3E89-3328-4E7D-A589-4D11BE382900"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Subject: Re: [PATCH] Makerules: Generate shlib.lds with -fuse-ld=bfd From: Sam James In-Reply-To: Date: Sun, 6 Nov 2022 23:12:39 +0000 Cc: Carlos O'Donell via Libc-alpha , Florian Weimer Message-Id: References: <20221106181750.2859300-1-maskray@google.com> <5D161B01-124A-48A5-98FA-B5EEBD6BBA94@gentoo.org> To: Fangrui Song X-Mailer: Apple Mail (2.3731.200.110.1.12) X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --Apple-Mail=_E6EB3E89-3328-4E7D-A589-4D11BE382900 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 6 Nov 2022, at 23:06, Fangrui Song via Libc-alpha = wrote: >=20 > On 2022-11-06, Sam James wrote: >>=20 >>=20 >>> On 6 Nov 2022, at 18:17, Fangrui Song via Libc-alpha = wrote: >>>=20 >>> lld does not dump a linker script with --verbose (it does not use a >>> linker script driven design and lots of linker processing is not >>> serializable as a linker script anyway). With the default >>> --with-default-link=3Dno build, $@T is empty and makes `test -s $@T` = fail. >>>=20 >>> Just dump the linker script with -fuse-ld=3Dbfd. lld since 15 >>> (https://reviews.llvm.org/D124656) supports custom RELRO sections in = the >>> GNU ld dumped linker script. >>> --- >>=20 >> What if bfd isn't installed? >=20 > Then --with-default-link=3Dyes has to be used:) Configure should check in that case. --Apple-Mail=_E6EB3E89-3328-4E7D-A589-4D11BE382900 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iNUEARYKAH0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCY2g/Z18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R kMdrAQDWVqQdVoSARkVqX0/bOrb+8QAI92br1vI5c/atj9wu+gEAyP36gE6o/0dg gZ6Max+cM4TqNWaK9JqXc2FZOTp90gE= =EFFG -----END PGP SIGNATURE----- --Apple-Mail=_E6EB3E89-3328-4E7D-A589-4D11BE382900--