From owner-freebsd-toolchain@freebsd.org Wed Apr 5 20:09:22 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DB157D2FD03 for ; Wed, 5 Apr 2017 20:09:22 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A0F8BCB5; Wed, 5 Apr 2017 20:09:22 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::98d1:3abf:218b:aa02] (unknown [IPv6:2001:470:7a58:0:98d1:3abf:218b:aa02]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 7024A869A; Wed, 5 Apr 2017 22:09:14 +0200 (CEST) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_FC4A7F6B-8E33-4A64-9A99-2F6F5DF955EA"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: April 2017 update on using LLVM's lld linker in the FreeBSD base system Date: Wed, 5 Apr 2017 22:09:01 +0200 In-Reply-To: To: "freebsd-toolchain@freebsd.org" References: X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2017 20:09:23 -0000 --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 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--