Re: Linking with lld instead of ld/gold

2017-08-14 Thread Ben Kelly
On Sun, Aug 13, 2017 at 5:08 PM, Sylvestre Ledru wrote: > To use it, you should have a clang >= 4.0 installed and lld installed > on the system. > clang is in charge of the LLD detection with its option -fuse-ld=lld > (this option is also supported by gcc since version 6). Clang will > look for t

Re: Linking with lld instead of ld/gold

2017-08-14 Thread Aryeh Gregor
On Mon, Aug 14, 2017 at 12:08 AM, Sylvestre Ledru wrote: > Packages for lld on Debian & Ubuntu are available on https://apt.llvm.org/ Ubuntu 16.04 and later also has an lld-4.0 package in its own repos (sudo apt install lld-4.0). ___ dev-platform mailin

Re: Linking with lld instead of ld/gold

2017-08-14 Thread Jeff Muizelaar
I believe all three linkers (bfd, gold and lld) can currently do LTO on LLVM bitcode. Naively I'd assume getting cross-compilation-unit optimization combining rust and clang compile units is more of a build system issue than a linker one. -Jeff On Mon, Aug 14, 2017 at 2:16 AM, Henri Sivonen wrot

Re: Linking with lld instead of ld/gold

2017-08-13 Thread Henri Sivonen
On Mon, Aug 14, 2017 at 12:08 AM, Sylvestre Ledru wrote: > Thanks to bug https://bugzilla.mozilla.org/show_bug.cgi?id=1336978, it > is now possible to link with LLD (the linker from the LLVM toolchain) > on Linux instead of bfd or gold. Great news. Thank you! Does this enable lld to ingest objec