From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id DC0433858C56 for ; Sun, 6 Nov 2022 21:22:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DC0433858C56 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=_B1BEA0B1-67AF-4F49-890B-1E9A3AEBC283"; 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: <20221106181750.2859300-1-maskray@google.com> Date: Sun, 6 Nov 2022 21:21:52 +0000 Cc: libc-alpha@sourceware.org, Florian Weimer Message-Id: <5D161B01-124A-48A5-98FA-B5EEBD6BBA94@gentoo.org> References: <20221106181750.2859300-1-maskray@google.com> To: Fangrui Song X-Mailer: Apple Mail (2.3731.200.110.1.12) X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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=_B1BEA0B1-67AF-4F49-890B-1E9A3AEBC283 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > 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. > --- What if bfd isn't installed? --Apple-Mail=_B1BEA0B1-67AF-4F49-890B-1E9A3AEBC283 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+RkAUCY2glcF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R kPLTAQCu2AtgF6euoJn2fyChE91Cxw4ItkcPescg3zV7nYaxGAD/RlKT07blJGb/ IDyzZnDlW7jYJCKwT6XQJoo0lhA9ogs= =+kfl -----END PGP SIGNATURE----- --Apple-Mail=_B1BEA0B1-67AF-4F49-890B-1E9A3AEBC283--