Enhance objdump's --private option so that it can display the contents of PE format files.

* od-pe.c: New file: Dumps fields in PE format headers.
  * configure.ac (od_vectors): Add objdump_private_desc_pe for PE format targets. (od_files): Add od-pe for PE format targets.
  * configure: Regenerate.
  * Makefile.am (CFILES): Add od-pe.c (EXTRA_objdump_SOURCE): Likewise.
  * Makefile.in: Generate.
  * NEWS: Mention the new feature.
  * doc/binutils.texi: Document the new support.
  * objdump.c (wide_output): Change from local to global.
  * objdump.h (wide_output): Prototype. (objdump_private_desc_pe): Prototype.
  * testsuite/binutils-all/objdump.exp: Add a test of the new feature.
This commit is contained in:
Nick Clifton
2023-05-26 15:41:20 +01:00
parent 5fd6b60d86
commit 45b8517aae
11 changed files with 670 additions and 7 deletions

View File

@@ -2754,6 +2754,12 @@ For XCOFF, the available options are:
@item ldinfo
@end table
For PE, the available options are:
@table @code
@item header
@item sections
@end table
Not all object formats support this option. In particular the ELF
format does not use it.