Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_FC4A7F6B-8E33-4A64-9A99-2F6F5DF955EA
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 5 Apr 2017, at 16:59, Ed Maste <emaste@freebsd.org> wrote:
>=20
> 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.
>=20
> First, the completed items:
>=20
>> 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.
>=20
> 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.
>=20
>> 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.
>=20
> This became WITH_LLD_IS_LD for consistency with WITH_CLANG_IS_CC. It
> also controls the bootstrap linker: adding WITH_LLD_IS_LD=3Dyes to
> src.conf means that the system will be built with LLD, and LLD will be
> /usr/bin/ld in the resulting world.
>=20
> 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


--Apple-Mail=_FC4A7F6B-8E33-4A64-9A99-2F6F5DF955EA
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.30

iEYEARECAAYFAljlTukACgkQsF6jCi4glqNd+wCg2t7dCQXZXEbvMs/9o/P2nR80
zA0AoJoFqEFwZtVQcVNeOGkJa/6qUcVL
=JzK8
-----END PGP SIGNATURE-----

--Apple-Mail=_FC4A7F6B-8E33-4A64-9A99-2F6F5DF955EA--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EF7F1860-2F22-41D7-A791-BF772C4E6DEA>