[patch] Fix some plugin API issues in BFD
Rafael Ávila de Espíndola
respindola@mozilla.com
Sun Feb 20 19:55:00 GMT 2011
An updated patch is attached that also avoids calling onload multiple times.
2010-02-20 Rafael Ãvila de EspÃndola <respindola@mozilla.com>
* plugin.c (bfd_plugin_object_p): Correctly set the filesize
and handle claim_file seeking. Only try to load the plugin once.
On 2011-02-08 22:17, Rafael Ãvila de EspÃndola wrote:
> I recently updated a plugin to use the file descriptor directly. This
> worked fine in gold, but had two issues using bfd (nm and ar):
>
> *) The filesize was not being set.
> *) The code expected the claim_file callback to not seek.
>
> That is not my understanding from reading the api documentation in
> http://gcc.gnu.org/wiki/whopr/driver, so the attached patch fixes both
> issues.
Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfd.patch
Type: text/x-patch
Size: 1371 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20110220/2a5a085e/attachment.bin>
More information about the Binutils
mailing list