Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Aug 2016 10:08:04 +0100
From:      David Chisnall <theraven@FreeBSD.org>
To:        Ed Maste <emaste@freebsd.org>
Cc:        "freebsd-toolchain@freebsd.org" <freebsd-toolchain@freebsd.org>
Subject:   Re: Update on using LLVM's lld linker in the FreeBSD base system
Message-ID:  <D7DFE5C9-2A34-479D-B5E3-170AD087F7F4@FreeBSD.org>
In-Reply-To: <CAPyFy2AN7iJ1L7gM=qjsBq8_NKTA-t-u-GSk5%2B-pWX%2B_V5ztzQ@mail.gmail.com>
References:  <CAPyFy2D-j6djHHiXk9D3dmj5xXjKGgoOEnUK7rHvbc=Hc28dxA@mail.gmail.com> <CAPyFy2AN7iJ1L7gM=qjsBq8_NKTA-t-u-GSk5%2B-pWX%2B_V5ztzQ@mail.gmail.com>

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

[-- Attachment #1 --]
On 2 Aug 2016, at 05:19, Ed Maste <emaste@freebsd.org> wrote:
> 
>>> 6. Request ports exp-runs and issue a call for testing with 3rd party
>>> software. Fix issues found during this process.
>> 
>> Experience suggests this may be the long poll :)
> 
> Indeed, and that's a big part of my motivation for trying to make lld
> more readily available as early as possible, even if we're still
> waiting on some required features.

I believe that all of the base system clang’s for supported branches support -fuse-ld=lld (perhaps 10.0 didn’t?), so if we have an lld candidate in ports then it should be easy for user to test it by doing a pkg ins lld and setting LDFLAGS.  Failing that, the fallback to just replacing /usr/bin/ld with a symlink to /usr/local/bin/ld.lld would probably work for ports testing.

We’re probably going to want a ‘needs bfd / gold instead of lld’ knob for a while.  We might need to patch the gcc versions in ports to accept -fuse-ld=lld[1].

I suspect the longer tail for LTO.  There is a bunch of low-hanging fruit in the FreeBSD tree where LTO would likely be a win (I’d expect most of the statically linked stuff to get smaller, if nothing else).

David

[1] gcc and clang interpret -fuse-ld differently.  In clang, -fuse-ld={foo} means ‘${PATH}/ld.{foo}’ is the linker and you should error out if it doesn’t exist. gcc instead hard codes bfd and gold as the two valid options and rejects anything else.
[-- Attachment #2 --]
0	*H
010	+0	*H

00"kg}0z$F`0
	*H
0u10	UIL10U

StartCom Ltd.1)0'U StartCom Certification Authority1#0!UStartCom Class 1 Client CA0
160419092742Z
170419092742Z0D10Utheraven@freebsd.org1#0!	*H
	theraven@freebsd.org0"0
	*H
0
!htֆ[J
^=*':#Y6"ӊ ؊cR_0WZ=Rx4	asPm&0:P2>u=NbLn]E}$$ xS4ǖRI68RpO֔{\oz;)D=SOM^#;Ԡ*Y߆mbf/+hBӅuQ@ڭʫ&8@Xm00U0U%0++0	U00Us[Ddp=0U#0$l9aIF+('Hmh0o+c0a0$+0http://ocsp.startssl.com09+0-http://aia.startssl.com/certs/sca.client1.crt08U10/0-+)'http://crl.startssl.com/sca-client1.crl0U0theraven@freebsd.org0#U0http://www.startssl.com/0FU ?0=0;+70,0*+http://www.startssl.com/policy0
	*H
R1m
=.A#6n-B;w5'zGL:=E44hOaŹi}l}{f!_Fh+MDZu!K&ECE~PWѥftB+UcEKD&3V]g,}{-)M[_!8jJ&a͒N"jԫt2ךz0ζ=|E?<viA2W9&_u{:u۲\E00ʠk}
׈Q
Y0
	*H
0}10	UIL10U

StartCom Ltd.1+0)U"Secure Digital Certificate Signing1)0'U StartCom Certification Authority0
151216010005Z
301216010005Z0u10	UIL10U

StartCom Ltd.1)0'U StartCom Certification Authority1#0!UStartCom Class 1 Client CA0"0
	*H
0
}â}[[_u$Wy5	|̔
vnqY)\aL$dYG|B"QǤĩVD#'F	k9O_]*ςz_kU.u3r	#:C<ogT)K
Xah8v[\KqdlO)3+u7J5";[vfL/"2ϩJ#4ד[U TB,a˖a7H<=qd0`0U0U%0++0U002U+0)0'%#!http://crl.startssl.com/sfsca.crl0f+Z0X0$+0http://ocsp.startssl.com00+0$http://aia.startssl.com/certs/ca.crt0U$l9aIF+('Hmh0U#0N@[i04hCA0?U 80604U 0,0*+http://www.startssl.com/policy0
	*H
[#'#4pnRۡЗN⛭`]K"#H*߷Թψ;UA8Ҟeg{ozmYE60A)wXRK6c^-Al^k[':G=;oLv{$B5;8b,ZP4{o[-໢j	׏m)[땭[4	s.c|ҴvYLJ<|ӯgu0jD2
@hl+:j\ze_ևa@HyMHINxpK?%	㤺RC:=?^&7m´)A2;E~VB1$EvcKj؝(OoپU`"$a;ҡj0$&<$ۊ+/xjzb,7}W*1ܺtDv#8K
%^P>/i?)yRuQg^z`~sP91N0J00u10	UIL10U

StartCom Ltd.1)0'U StartCom Certification Authority1#0!UStartCom Class 1 Client CA"kg}0z$F`0	+0	*H
	1	*H
0	*H
	1
160802090805Z0#	*H
	1ʙ>
,eU#0	+7100u10	UIL10U

StartCom Ltd.1)0'U StartCom Certification Authority1#0!UStartCom Class 1 Client CA"kg}0z$F`0*H
	10u10	UIL10U

StartCom Ltd.1)0'U StartCom Certification Authority1#0!UStartCom Class 1 Client CA"kg}0z$F`0
	*H

8
;
{7ȯ5BngL`Ig%]ilOtH,PZ2T)hqt^fKL4u]KEaI$)8	
yv`D\>_IC!؈OJN+z;vi)7ӑS-=_h"uHn 1ZM-R5
l	2
=&3+)tl#j>,3

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D7DFE5C9-2A34-479D-B5E3-170AD087F7F4>