binutils225: Add plugin support in ar, nm, ranlib.
authorzrj <rimvydas.jasinskas@gmail.com>
Sat, 1 Oct 2016 13:41:51 +0000 (16:41 +0300)
committerzrj <zrj@dragonflybsd.org>
Tue, 25 Oct 2016 16:31:19 +0000 (19:31 +0300)
commit6cc51cd6fe0026deabd81bb6bad9f2dd736cad61
tree7e6bd88909098ab391d16db367f3593213c9fcaf
parentf773a7d816db82b3c9ff806e85cc014615cf0c5b
binutils225: Add plugin support in ar, nm, ranlib.

This finally adds support for --plugin [libplugin.so] flag usage.

Default loadable plugins should be symlinked to binutils private
/usr/libexec/binutils225/bfd-plugins/ directory.
For now that directory is not created by mtree and gcc does not
install symlink to its private liblto_plugin.so.

TBD if we want this implicit LTO support without explicit --plugin.
Note that bfd plugin enabled utilities will try to load *anything*
residing in that directory, even hangman(6)!
Still, support for it is useful for local experimentation since this
allows to test even LLVMgold.so without lots of edits in Makefiles.
gnu/usr.bin/binutils225/block1/Makefile.block1
gnu/usr.bin/binutils225/block1/libbfd/Makefile
gnu/usr.bin/binutils225/block2/ar/Makefile
gnu/usr.bin/binutils225/block2/ranlib/Makefile