This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
plugin assert
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Mon, 13 Dec 2010 10:20:18 +1030
- Subject: plugin assert
objdump -i asserts in bfd_plugin_mkobject. On some targets this
causes objdump -i to return with an error status.
* plugin.c (bfd_plugin_mkobject): Delete.
(plugin_vec): Use bfd_false instead.
Index: bfd/plugin.c
===================================================================
RCS file: /cvs/src/src/bfd/plugin.c,v
retrieving revision 1.10
diff -u -p -r1.10 plugin.c
--- bfd/plugin.c 6 Dec 2010 20:25:49 -0000 1.10
+++ bfd/plugin.c 12 Dec 2010 23:47:07 -0000
@@ -448,13 +448,6 @@ bfd_plugin_sizeof_headers (bfd *a ATTRIB
return 0;
}
-static bfd_boolean
-bfd_plugin_mkobject (bfd *abfd ATTRIBUTE_UNUSED)
-{
- BFD_ASSERT (0);
- return 0;
-}
-
const bfd_target plugin_vec =
{
"plugin", /* Name. */
@@ -485,7 +478,7 @@ const bfd_target plugin_vec =
},
{ /* bfd_set_format. */
bfd_false,
- bfd_plugin_mkobject,
+ bfd_false,
_bfd_generic_mkarchive,
bfd_false,
},
--
Alan Modra
Australia Development Lab, IBM