git: ld/gold: Add link-time optimization plugin support

John Marino marino at crater.dragonflybsd.org
Tue Jul 10 10:49:57 PDT 2012


commit b5d88771bef3f5490e785f2594d06edd1da458c4
Author: John Marino <draco at marino.st>
Date:   Mon Jun 25 18:39:37 2012 +0200

    ld/gold: Add link-time optimization plugin support
    
    The binutils 2.22 ld.bfd and ld.gold linkers were not configured to support
    link-time optimization plugins (-plugin switch) previously.  This changeset
    adds -plugin support to both linkers.  The ld.bfd linker was previously
    built statically, but it was necessary to change this to use the libc and
    libz shared libraries because the -plugin option requires the dynamic
    function dlopen().
    
    The same update was not applied to binutils 2.21 linkers.

Summary of changes:
 gnu/usr.bin/binutils222/ld/Makefile      |    8 ++++++--
 gnu/usr.bin/binutils222/ld/config.h      |    2 +-
 gnu/usr.bin/binutils222/libgold/config.h |    2 +-
 3 files changed, 8 insertions(+), 4 deletions(-)

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


-- 
DragonFly BSD source repository





More information about the Commits mailing list