This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Bug in pe_print_idata
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- To: Laurent Pinchart <laurent dot pinchart at skynet dot be>
- Cc: binutils at sources dot redhat dot com
- Date: 15 May 2002 16:27:39 +0100
- Subject: Re: Bug in pe_print_idata
- References: <02050622374100.00293@griffindor>
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.