This patch adds support for printing out the pdata section of PE objects.
authorPierre Muller <muller@sourceware.org>
Wed, 24 Dec 2014 10:06:57 +0000 (10:06 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 24 Dec 2014 10:06:57 +0000 (10:06 +0000)
commit854399ea9d0d5d5c14b4035bbc0adfe891f26a3d
tree2edc46b1db5218e2cecaee551378b734303e525d
parentc361b9ac1ffcf62fb5d4c031c55e60cea963a85d
This patch adds support for printing out the pdata section of PE objects.

* pe-x86_64.c (pex64_bfd_print_pdata): Add external
declaration.
(bfd_pe_print_data): Set macro to pex64_bfd_print_data.
* pei-x86_64.c (pex64_bfd_print_pdata): Changed to
global function. Now handles multiple .pdata sections.
(pex_bfd_print_pdata_section): New static helper function,
using most of old pex_bfd_print_pdata function code, but adding
support for coff pe objects, which might have some fields
starting at zero offset.
(pex64_print_all_pdata_sections) : New static helper function,
used in call to bfd_map_over_sections inside new
pex66_bfd_print_pdata function.
(bfd_boolean pdata_count): New static variable, used to return
bfd_boolean value for pex64_bfd_print_pdata function.
bfd/ChangeLog
bfd/pe-x86_64.c
bfd/pei-x86_64.c