[patch] Updated plugin support for bfd

Rafael Espindola espindola@google.com
Fri May 22 16:01:00 GMT 2009


This is an update patch. The main difference from the last one is that
now --enable-plugin has the same effect of just adding the plugin
target to --enable-targets. This fixes the build if using
--enable-targets=all.

bfd/
2009-05-22  Rafael Avila de Espindola  <espindola@google.com>

	* Makefile.am: Run "make dep-am".
	(AM_CPPFLAGS, LIBDL): New.
	(ALL_MACHINES): Add cpu-plugin.lo.
	(ALL_MACHINES_CFILES): Add cpu-plugin.c.
	(BFD32_BACKENDS): Add plugin.lo.
	(BFD32_BACKENDS_CFILES): Add plugin.c.
	(libbfd_la_LIBADD): Add $(LIBDL)
	* Makefile.in: Regenerate.
	* archures.c (bfd_architecture): Add bfd_arch_plugin.
	(bfd_plugin_arch): Declare.
	* bfd-in.h (BFD_SUPPORTS_PLUGINS): New.
	* bfd-in2.h: Regenerate.
	* bfd.c (bfd): Add plugin_data.
	* config.bfd: Handle the plugin target.
	* configure: Regenerate.
	* configure.in: Check for --enable-plugins. Don't disable largfile if
plugin is enabled.
	(LT_INIT): Use the dlopen option.
	(PLUGINS): New.
	(supports_plugins): New.
	* cpu-plugin.c: New.
	* doc/Makefile.in: Regenerate.
	* plugin.c: New.
	* plugin.h: New.
	* targets.c (plugin_vec): New.
	(_bfd_target_vector): Add plugin_vec.

binutils/
2009-05-22  Rafael Avila de Espindola  <espindola@google.com>

	* NEWS: Mention the plugin target.
	* ar.c: Include plugin.h.
	(usage): Document the --plugin option.
	(main): Handle the --plugin option.
	* configure.in: Check for --enable-plugins. Don't disable largfile if
plugin is enabled.
	* configure: Regenerate.
	* doc/binutils.texi: Document the --plugin option in ar and nm.
	* nm.c: Include plugin.h
	(OPTION_PLUGIN): New.
	(long_options): Add plugin.
	(main): Handle OPTION_PLUGIN.

Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfd-plugins.patch
Type: text/x-diff
Size: 31656 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20090522/ddd4d27a/attachment.bin>


More information about the Binutils mailing list