Bug in pe_print_idata
Nick Clifton
nickc@cambridge.redhat.com
Wed May 15 08:27:00 GMT 2002
Hi Laurent,
> I found a bug in pe_print_idata. In some PE files (namely drivers)
> the 'first thunk' is not located in the same section as the import
> table itself. This leads to weird behaviours, and segfaults.
>
> I attached a patch to fix the problem to this mail. It would be nice
> if someone with more binutils (especially bfd) knowledge than me
> could have a look at it, correct it (it works here but I'm pretty
> sure that I forgot something) and apply it.
OK - I have not been abke to reproduce the problem, but this is due to
my lack of knowledge of things PE. I am going to accept your patch
however, and we will see if anybody complains.
Cheers
Nick
2002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
* peXXigen.c (pe_print_idata): Do not assume that the first thunk
is located in the same section as the import table. Instead
check, and if necessary load the section containing the thunk.
More information about the Binutils
mailing list