[patch] Fix some plugin API issues in BFD

Rafael Ávila de Espíndola respindola@mozilla.com
Wed Feb 9 03:17:00 GMT 2011


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.

2010-02-08  Rafael Ávila de Espíndola <respindola@mozilla.com>

	* plugin.c (bfd_plugin_object_p): Correctly set the filesize
	and handle claim_file seeking.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfd.patch
Type: text/x-patch
Size: 799 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20110209/ed52ef82/attachment.bin>


More information about the Binutils mailing list