Hi Pavel,

pe_print_edata() thinks the RVA is a forwarder when it points between the start of export tables (from the data dictionary) and the end of the *whole section* containing the tables. This is wrong. It should use the length in the data directory to determine the end of area occupied by export tables.

See the attached patch.

Thanks for the patch. I think that it is small enough to be considered as obvious and so not need a copyright assignment. Thus I have applied it together with this ChangeLog entry:

bfd/ChangeLog
2005-07-29  Pavel Kankovsky  <[EMAIL PROTECTED]>

        * peXXigen.c (pe_print_edata): Compute the size of the export
        table from the size field in the DataDictionary and not the size
        of the section.  Some linkers embed the export table inside a
        larger section.

Cheers
  Nick



_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to