Heads-up: linker (lld) changes for amd64 coming soon
Ed Maste
emaste at freebsd.org
Sun Apr 29 02:47:16 UTC 2018
On 26 April 2018 at 23:07, Fāng-ruì Sòng <emacsray at gmail.com> wrote:
>
> I'd like to experiment with LLD --warn-backrefs, which keeps compatibility
> with GNU linkers (bfd, gold) in terms of handling of LazyArchive and
> LazyObject (see
> http://lists.llvm.org/pipermail/llvm-dev/2018-April/122383.html for
> details).
Ah, thanks for the note. It was not documented in lld's man page; I
just added it upstream.
> I think a few representative FreeBSD packages may be a great playground to
> try --warn-backrefs
>
> Do you have some pointers on how I can build these packages locally with
> --warn-backrefs ?
Just adding LDFLAGS=-Wl,--warn-backrefs to /etc/make.conf should be
sufficient. I'm not sure of the proper way to replace the linker (with
a build from upstream that supports --warn-backrefs) or provide a
custom make.conf in Poudriere though, and hope that someone else can
provide some guidance on that.
More information about the freebsd-toolchain
mailing list