[PATCH] Makerules: Generate shlib.lds with -fuse-ld=bfd

Sam James sam@gentoo.org
Sun Nov 6 23:12:39 GMT 2022



> On 6 Nov 2022, at 23:06, Fangrui Song via Libc-alpha <libc-alpha@sourceware.org> wrote:
> 
> On 2022-11-06, Sam James wrote:
>> 
>> 
>>> On 6 Nov 2022, at 18:17, Fangrui Song via Libc-alpha <libc-alpha@sourceware.org> wrote:
>>> 
>>> 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=no build, $@T is empty and makes `test -s $@T` fail.
>>> 
>>> Just dump the linker script with -fuse-ld=bfd.  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?
> 
> Then --with-default-link=yes has to be used:)

Configure should check in that case.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 358 bytes
Desc: Message signed with OpenPGP
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20221106/ab3d68f0/attachment.sig>


More information about the Libc-alpha mailing list