diff options
author | Nick Clifton <nickc@redhat.com> | 2023-05-26 15:41:20 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2023-05-26 15:41:20 +0100 |
commit | 45b8517aae872adf7756dce6e138e487e5bc9b96 (patch) | |
tree | 8dd8e6a0c1d0a5f9e5a4ef478c3e7dd07245d57a /binutils/configure | |
parent | 5fd6b60d86ab6ab4bbd173524062b5d2aeac199a (diff) | |
download | binutils-45b8517aae872adf7756dce6e138e487e5bc9b96.zip binutils-45b8517aae872adf7756dce6e138e487e5bc9b96.tar.gz binutils-45b8517aae872adf7756dce6e138e487e5bc9b96.tar.bz2 |
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.
Diffstat (limited to 'binutils/configure')
-rwxr-xr-x | binutils/configure | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/binutils/configure b/binutils/configure index f27ee48..6987769 100755 --- a/binutils/configure +++ b/binutils/configure @@ -14571,7 +14571,7 @@ do fi DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386" BUILD_DLLWRAP='$(DLLWRAP_PROG)$(EXEEXT)' - od_vectors="$od_vectors objdump_private_desc_xcoff" + od_vectors="$od_vectors objdump_private_desc_xcoff objdump_private_desc_pe" else case $targ in *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;; @@ -14685,6 +14685,9 @@ do powerpc*-*-aix* | rs6000-*-aix*) od_vectors="$od_vectors objdump_private_desc_xcoff" ;; + *-*-pe* | *-*-cygwin* | *-*-mingw*) + od_vectors="$od_vectors objdump_private_desc_pe" + ;; *-*-darwin*) od_vectors="$od_vectors objdump_private_desc_mach_o" ;; @@ -14706,6 +14709,8 @@ for i in $od_vectors ; do od_files="$od_files od-elf32_avr" ;; objdump_private_desc_xcoff) od_files="$od_files od-xcoff" ;; + objdump_private_desc_pe) + od_files="$od_files od-pe" ;; objdump_private_desc_mach_o) od_files="$od_files od-macho" ;; *) as_fn_error $? "*** unknown private vector $i" "$LINENO" 5 ;; |