Re: Update on using LLVM's lld linker in the FreeBSD base system

2016-09-27 Thread Ed Maste
On 1 August 2016 at 17:40, Ed Maste wrote: > Over the past year or so I have been investigating the state of LLVM's > lld linker for use in the FreeBSD base system, to see if it could be > used as FreeBSD's system linker. A quick update: most of the required changes have now made it into LLD, and

Re: Update on using LLVM's lld linker in the FreeBSD base system

2016-09-07 Thread Ed Maste
On 1 August 2016 at 17:40, Ed Maste wrote: > Over the past year or so I have been investigating the state of LLVM's > lld linker for use in the FreeBSD base system, to see if it could be > used as FreeBSD's system linker. > > ... > There are a few features used by the FreeBSD base system that lld

Re: Update on using LLVM's lld linker in the FreeBSD base system

2016-08-02 Thread David Chisnall
On 2 Aug 2016, at 05:19, Ed Maste 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 l

Re: Update on using LLVM's lld linker in the FreeBSD base system

2016-08-01 Thread Warner Losh
>> Generally, I like it though. My concerns are mostly with ports and gcc plans. >> Though it isn't coupled to gcc, I'd suggest that we want to have a joint plan >> for both before we get out the axes. Note this is purely a timing argument, >> not whether to get them out, just when :) > > Yes, full

Re: Update on using LLVM's lld linker in the FreeBSD base system

2016-08-01 Thread Ed Maste
For some reason Warner's email didn't make it to me, but I spotted it in the list archive. Warner writes: > On Mon, Aug 1, 2016 at 3:40 PM, Ed Maste wrote: >> -N/--omagic, used by some boot loader components. We can achieve the >> same effect with a linker script. > > Agreed. Or objcopy even. I'

Re: Update on using LLVM's lld linker in the FreeBSD base system

2016-08-01 Thread Mark Millard
Warner Losh imp at bsdimp.com wrote on Aug 1 22:27:19 UTC 2016 : > On Mon, Aug 1, 2016 at 3:40 PM, Ed Maste wrote: > > > There is (some) support for mips and powerpc in lld, but I'm not sure > > how well tested it is. RISC-V is not yet supported but there is a > > desire to have a full LLVM-base

Re: Update on using LLVM's lld linker in the FreeBSD base system

2016-08-01 Thread Warner Losh
On Mon, Aug 1, 2016 at 3:40 PM, Ed Maste wrote: > -N/--omagic, used by some boot loader components. We can achieve the > same effect with a linker script. Agreed. Or objcopy even. > 2. Add the bmake build infrastructure, installing as /usr/bin/ld.lld > on the same architectures that use Clang (a