Date: Wed, 5 Apr 2017 22:09:01 +0200 From: Dimitry Andric <dim@FreeBSD.org> To: "freebsd-toolchain@freebsd.org" <freebsd-toolchain@freebsd.org> Subject: Re: April 2017 update on using LLVM's lld linker in the FreeBSD base system Message-ID: <EF7F1860-2F22-41D7-A791-BF772C4E6DEA@FreeBSD.org> In-Reply-To: <CAPyFy2ATORfYmtE_nPVd3Tc5igY5kUrnUNZNL5TLS9%2B=uh4KZQ@mail.gmail.com> References: <CAPyFy2ATORfYmtE_nPVd3Tc5igY5kUrnUNZNL5TLS9%2B=uh4KZQ@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On 5 Apr 2017, at 16:59, Ed Maste <emaste@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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAljlTukACgkQsF6jCi4glqNd+wCg2t7dCQXZXEbvMs/9o/P2nR80 zA0AoJoFqEFwZtVQcVNeOGkJa/6qUcVL =JzK8 -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EF7F1860-2F22-41D7-A791-BF772C4E6DEA>
