git: Switch to using gold linker by default

John Marino marino at crater.dragonflybsd.org
Sun Nov 15 00:27:55 PST 2015


commit b69d2d5e5591946d4e3c24d03b0e4b39b07d1479
Author: John Marino <draco at marino.st>
Date:   Sat Nov 14 15:26:33 2015 +0100

    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.

Summary of changes:
 Makefile.inc1                 |  2 +-
 share/man/man5/make.conf.5    |  4 ++--
 usr.bin/objformat/objformat.1 | 13 ++++++++-----
 usr.bin/objformat/objformat.c | 14 ++++++++------
 4 files changed, 19 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b69d2d5e5591946d4e3c24d03b0e4b39b07d1479


-- 
DragonFly BSD source repository


More information about the Commits mailing list