summaryrefslogtreecommitdiff
path: root/bfd/coff-x86_64.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-04-06 16:48:36 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-04-06 16:48:36 +0000
commitdb1fe6e9e555d8f7a6350da197032cffd7fe1378 (patch)
treeb297f6d8b9f193d5b7adf8e701274d2440ee4567 /bfd/coff-x86_64.c
parent32252ac19e8131db716d8daa6210caf5407d5dbd (diff)
downloadbinutils-gdb-db1fe6e9e555d8f7a6350da197032cffd7fe1378.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 aca5c8d9ecf..ec78fbfafd2 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"