aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-ppc.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-09-21 14:25:09 +0000
committerNick Clifton <nickc@redhat.com>2001-09-21 14:25:09 +0000
commit1e738b87c87fe468ba6dd11f8e94e937d0ee665f (patch)
tree3b3e27dbacad4771a4eaae2c0a2b191c322a0670 /bfd/coff-ppc.c
parent2ca0d95257f38e932db032b87e17a4b538e47d49 (diff)
downloadgdb-1e738b87c87fe468ba6dd11f8e94e937d0ee665f.zip
gdb-1e738b87c87fe468ba6dd11f8e94e937d0ee665f.tar.gz
gdb-1e738b87c87fe468ba6dd11f8e94e937d0ee665f.tar.bz2
Fix compile time warnings
Diffstat (limited to 'bfd/coff-ppc.c')
-rw-r--r--bfd/coff-ppc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/bfd/coff-ppc.c b/bfd/coff-ppc.c
index 7dd4aad..f2bdfe5 100644
--- a/bfd/coff-ppc.c
+++ b/bfd/coff-ppc.c
@@ -2176,10 +2176,6 @@ ppc_coff_reloc_type_lookup (abfd, code)
#define RTYPE2HOWTO(cache_ptr, dst) ppc_coff_rtype2howto (cache_ptr, dst)
-#ifndef COFF_IMAGE_WITH_PE
-static void ppc_coff_swap_sym_in_hook PARAMS ((bfd *, PTR, PTR));
-#endif
-
/* We use the special COFF backend linker, with our own special touch. */
#define coff_bfd_reloc_type_lookup ppc_coff_reloc_type_lookup
@@ -2189,8 +2185,10 @@ static void ppc_coff_swap_sym_in_hook PARAMS ((bfd *, PTR, PTR));
#ifndef COFF_IMAGE_WITH_PE
/* FIXME: This no longer works. */
+#if 0
#define coff_swap_sym_in_hook ppc_coff_swap_sym_in_hook
#endif
+#endif
#define SELECT_RELOC(internal, howto) {internal.r_type=howto->type;}
@@ -2218,6 +2216,8 @@ static void ppc_coff_swap_sym_in_hook PARAMS ((bfd *, PTR, PTR));
#include "coffcode.h"
#ifndef COFF_IMAGE_WITH_PE
+/* FIXME: This no longer works. */
+#if 0
/* FIXME:
What we're trying to do here is allocate a toc section (early), and attach
it to the last bfd to be processed. This avoids the problem of having a toc
@@ -2231,6 +2231,7 @@ static void ppc_coff_swap_sym_in_hook PARAMS ((bfd *, PTR, PTR));
3. Doing it on a "swap in" hook depends on when the "swap in" is called,
and how often, etc. It's not clear to me that there isn't a hole here.
*/
+static void ppc_coff_swap_sym_in_hook PARAMS ((bfd *, PTR, PTR));
static void
ppc_coff_swap_sym_in_hook (abfd, ext1, in1)
@@ -2273,6 +2274,7 @@ ppc_coff_swap_sym_in_hook (abfd, ext1, in1)
return;
}
#endif
+#endif
#ifndef COFF_IMAGE_WITH_PE