On 26 April 2018 at 23:07, Fāng-ruì Sòng <[email protected]> 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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "[email protected]"

Reply via email to