aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-sh.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-07-21 14:09:57 +0000
committerNick Clifton <nickc@redhat.com>2008-07-21 14:09:57 +0000
commit799c00e0279d96a1254ad1242c0d3c7c3d54fc9a (patch)
tree2323b493dd8e1b0312df0e0bd4f242d75b9ff14e /bfd/coff-sh.c
parent5b9f75a8ae5c7e27f23b95b6bbe86790e03a4d29 (diff)
downloadgdb-799c00e0279d96a1254ad1242c0d3c7c3d54fc9a.zip
gdb-799c00e0279d96a1254ad1242c0d3c7c3d54fc9a.tar.gz
gdb-799c00e0279d96a1254ad1242c0d3c7c3d54fc9a.tar.bz2
* coff-sh.c (bfd_pe_print_pdata): Define to NULL for non
COFF_WITH_PE based SH ports. * libpei.h (_bfd_XX_print_ce_compressed_pdata): Prototype. * arm-wince-pe.c (bfd_pe_print_pdata): Use _bfd_pe_print_ce_compressed_pdata. (slurp_symcache, cleanup_syms, pe_print_ce_compressed_pdata): Move to... * peXXigen.c: ... here and rename pe_print_ce_compressed_pdata to _bfd_XX_print_ce_compressed_pdata.
Diffstat (limited to 'bfd/coff-sh.c')
-rw-r--r--bfd/coff-sh.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/bfd/coff-sh.c b/bfd/coff-sh.c
index 0720867..1a5d63d 100644
--- a/bfd/coff-sh.c
+++ b/bfd/coff-sh.c
@@ -30,6 +30,8 @@
#include "coff/sh.h"
#include "coff/internal.h"
+#undef bfd_pe_print_pdata
+
#ifdef COFF_WITH_PE
#include "coff/pe.h"
@@ -41,11 +43,14 @@ static bfd_boolean sh_align_load_span
#define _bfd_sh_align_load_span sh_align_load_span
#endif
-#endif
-#undef bfd_pe_print_pdata
-#define bfd_pe_print_pdata pe_print_ce_compressed_pdata
-extern bfd_boolean pe_print_ce_compressed_pdata (bfd *, void *);
+#define bfd_pe_print_pdata _bfd_pe_print_ce_compressed_pdata
+
+#else
+
+#define bfd_pe_print_pdata NULL
+
+#endif /* COFF_WITH_PE. */
#include "libcoff.h"