summaryrefslogtreecommitdiff
path: root/bfd/coff-x86_64.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2009-04-06 16:48:36 +0000
committerH.J. Lu <hjl@lucon.org>2009-04-06 16:48:36 +0000
commite16bc175c8a566bc696177f425329d581f5b42d1 (patch)
tree7f8e4c7c43c030d639ed51160a9bb982750af0ea /bfd/coff-x86_64.c
parent6c145c1525fb3c603aa475ef57ccf593c32b1aaf (diff)
downloadbinutils-redhat-e16bc175c8a566bc696177f425329d581f5b42d1.tar.gz
2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
* coff-x86_64.c (bfd_pe_print_pdata): Defined to _bfd_pex64_print_pdata only if PE is defined. * libpei.h (_bfd_pep_print_x64_pdata): Renamed to ... (_bfd_pex64_print_pdata): This. * peXXigen.c (_bfd_pep_print_x64_pdata): Renamed to ... (_bfd_pex64_print_pdata): This. Defined only if COFF_WITH_pex64 is defined.
Diffstat (limited to 'bfd/coff-x86_64.c')
-rw-r--r--bfd/coff-x86_64.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/bfd/coff-x86_64.c b/bfd/coff-x86_64.c
index aca5c8d9ec..ec78fbfafd 100644
--- a/bfd/coff-x86_64.c
+++ b/bfd/coff-x86_64.c
@@ -711,8 +711,14 @@ coff_amd64_is_local_label_name (bfd *abfd, const char *name)
#endif /* TARGET_UNDERSCORE */
+#ifdef PE
#undef bfd_pe_print_pdata
-#define bfd_pe_print_pdata _bfd_pep_print_x64_pdata
+#define bfd_pe_print_pdata _bfd_pex64_print_pdata
+#else /* PE */
+#ifndef bfd_pe_print_pdata
+#define bfd_pe_print_pdata NULL
+#endif
+#endif /* PE */
#include "coffcode.h"