Using non-gcc linker?

2012-01-23 Thread Pierre-Luc Drouin
Hi,

I just made world and kernel using clang, but I noticed that ld is still
using the GNU ld. The page
http://wiki.freebsd.org/BuildingFreeBSDWithClangmentions using a
different linker that supports LTO optimisation. Is that
non-GNU linker part of FreeBSD 9?

Thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Using non-gcc linker?

2012-01-23 Thread Joshua Isom

On 1/23/2012 3:47 PM, Pierre-Luc Drouin wrote:

Hi,

I just made world and kernel using clang, but I noticed that ld is still
using the GNU ld. The page
http://wiki.freebsd.org/BuildingFreeBSDWithClangmentions using a
different linker that supports LTO optimisation. Is that
non-GNU linker part of FreeBSD 9?

Thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


It's a newer gnu ld that supports plugins.  The plugin handles the LTO. 
 It might be possible to compile to bytecode, link and optimize with 
llvm-ld.  It might still need gnu ld to create a final binary.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org