Switch to using gold linker by default
authorJohn Marino <draco@marino.st>
Sat, 14 Nov 2015 14:26:33 +0000 (15:26 +0100)
committerJohn Marino <draco@marino.st>
Sun, 15 Nov 2015 08:27:09 +0000 (09:27 +0100)
commitb69d2d5e5591946d4e3c24d03b0e4b39b07d1479
treea218c9cb0345d9f6b111e56e7e5283b6f2b68f51
parent6b6b4dd0d75b9cd8fd4deebd4046aae2f1fafb10
Switch to using gold linker by default

DragonFly has always used the "GNU ld" linker to build itself.  Now that
the ELF boot loader has been fixed to handle zero-offset headers (seen
with zero-length ELF notes), the newer gold linker can handle being the
default.  That's what this commit does.

People can continue with the classic linker by putting the following in
/etc/make.conf:  WORLD_LDVER=ld.bfd
... and setting "LDVER=ld.bfd" in their environment.

The gold linker does not use the bfd library and thus is limited to the
ELF format (fine for DF).  It's code is much cleaner (c++), so it's easy
to understand and modify, and it reportedly links complex c++ object
files significantly faster than the BFD-based linker.  Both linkers are
written by the same person, Ian Lance Taylor.
Makefile.inc1
share/man/man5/make.conf.5
usr.bin/objformat/objformat.1
usr.bin/objformat/objformat.c