Makerules: Generate shlib.lds with -fuse-ld=bfd
authorFangrui Song <maskray@google.com>
Wed, 9 Nov 2022 04:56:59 +0000 (20:56 -0800)
committerFangrui Song <maskray@google.com>
Wed, 9 Nov 2022 04:56:59 +0000 (20:56 -0800)
commit2ae7990542e1955097aa21943e416dec70f867fa
treeed8363027c718acb05e3bb148e81da794ac821a3
parent52cf11004eb10f8ebbc193fbdf4094cfecb3dbff
Makerules: Generate shlib.lds with -fuse-ld=bfd

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.

Reviewed-by: Sam James <sam@gentoo.org>
Makerules