BFD: Add support for more than one plugin in lib/bfd-plugins
authorMarkus Trippelsdorf <markus@trippelsdorf.de>
Wed, 24 Sep 2014 08:34:53 +0000 (18:04 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 24 Sep 2014 08:38:53 +0000 (18:08 +0930)
commite44f5bef12a54b9c1cc24a5783dedde6f158ad15
tree85d7d16c035e6332fd2cc6491ca8f3bff90de2cd
parent71b9b91bce45aa220e0b48e7c2f70021c86e8594
BFD: Add support for more than one plugin in lib/bfd-plugins

ar, nm and ranlib currently lack the ability to handle more than one
plugin in lib/bfd-plugins. This patch reshuffles the logic in plugin.c
to add this functionality. One can now place both llvm and gcc plugins
in this directory and have them loaded automatically.
Mixed gcc/llvm archives are also supported (but not very useful until
ld.bfd and ld.gold also would load multiple plugins and use them to
claim different object files).

PR 17422
* plugin.c (try_claim): New function. Moved from
bfd_plugin_object_p.
(try_load_plugin): Pass through bfd. Add test.
(load_plugin): Pass through bfd.
(bfd_plugin_object_p): Move logic to try_claim.
bfd/ChangeLog
bfd/plugin.c
This page took 0.02531 seconds and 4 git commands to generate.