ld/gold: Add link-time optimization plugin support
authorJohn Marino <draco@marino.st>
Mon, 25 Jun 2012 16:39:37 +0000 (18:39 +0200)
committerJohn Marino <draco@marino.st>
Tue, 10 Jul 2012 17:46:06 +0000 (19:46 +0200)
commitb5d88771bef3f5490e785f2594d06edd1da458c4
tree0c99e9fc214363aacbdc093ca53ffe58aed81941
parent52800c9d1564b2c29ffe6d7a4ad627b55526ce97
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.
gnu/usr.bin/binutils222/ld/Makefile
gnu/usr.bin/binutils222/ld/config.h
gnu/usr.bin/binutils222/libgold/config.h