On 5 Apr 2017, at 16:59, Ed Maste <ema...@freebsd.org> wrote: > > Here's a fresh update on LLVM's LLD linker in the base system, > referencing the plan originally posted at the beginning of 2016. This > work is primarily taking place on amd64 right now, and unless > otherwise noted these results apply to amd64. > > First, the completed items: > >> 1. Update lld along with the Clang/LLVM 3.9 update that dim@ is working on. >> 2. Add the bmake build infrastructure, installing as /usr/bin/ld.lld >> on the same architectures that use Clang (amd64, arm, arm64, i386). >> 3. Update lld again (most likely to a snapshot from upstream SVN) once >> it is able to link an unmodified FreeBSD kernel. > > We now have LLD 4.0.0 in the tree and it can build all of > FreeBSD/amd64 kernel and world, and most of ports. > >> 4. Modify the boot loader and kernel builds to avoid using features >> not implemented by lld. >> 5. Introduce a WITH_LLD_AS_LD knob to have /usr/bin/ld be a ld.lld >> hardlink instead of /usr/bin/ld.bfd. > > This became WITH_LLD_IS_LD for consistency with WITH_CLANG_IS_CC. It > also controls the bootstrap linker: adding WITH_LLD_IS_LD=yes to > src.conf means that the system will be built with LLD, and LLD will be > /usr/bin/ld in the resulting world. > > This option is currently enabled by default on arm64 (only).
Note that as of r316432, all of the above is also available in the stable/11 branch. -Dimitry
signature.asc
Description: Message signed with OpenPGP