aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-x86_64.c
diff options
context:
space:
mode:
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 aca5c8d..ec78fbf 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"