aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-ppc.c
diff options
context:
space:
mode:
authorKim Knuttila <krk@cygnus>1995-12-13 16:22:02 +0000
committerKim Knuttila <krk@cygnus>1995-12-13 16:22:02 +0000
commit3920d9c92487cb27f4cd2130c1dd94ba34234a99 (patch)
tree343dc8bcd8a026e54e145e8104a42932312b960b /bfd/coff-ppc.c
parent207345f2f6f4af5a2f55c5e82c9b3c0c5a1bb847 (diff)
downloadgdb-3920d9c92487cb27f4cd2130c1dd94ba34234a99.zip
gdb-3920d9c92487cb27f4cd2130c1dd94ba34234a99.tar.gz
gdb-3920d9c92487cb27f4cd2130c1dd94ba34234a99.tar.bz2
Protected debugging code. (duh)
Diffstat (limited to 'bfd/coff-ppc.c')
-rw-r--r--bfd/coff-ppc.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/bfd/coff-ppc.c b/bfd/coff-ppc.c
index 7008109..00509a3 100644
--- a/bfd/coff-ppc.c
+++ b/bfd/coff-ppc.c
@@ -1531,9 +1531,10 @@ coff_ppc_relocate_section (output_bfd, info, input_bfd, input_section,
if (coff_data(output_bfd)->pe)
addr -= pe_data(output_bfd)->pe_opthdr.ImageBase;
+#ifdef DEBUG_RELOC
fprintf(stderr,
" Toc Section .reloc candidate addr = %x\n", addr);
-
+#endif
fwrite (&addr, 1,4, (FILE *) info->base_file);
}
@@ -1732,16 +1733,18 @@ coff_ppc_relocate_section (output_bfd, info, input_bfd, input_section,
+ input_section->output_offset
+ input_section->output_section->vma;
- DUMP_RELOC2(howto->name, rel);
-
if (coff_data(output_bfd)->pe)
{
bfd_vma before_addr = addr;
addr -= pe_data(output_bfd)->pe_opthdr.ImageBase;
+#ifdef DEBUG_RELOC
fprintf(stderr,
" adjusted down from %x to %x", before_addr, addr);
+#endif
}
+#ifdef DEBUG_RELOC
fprintf(stderr, "\n");
+#endif
fwrite (&addr, 1,4, (FILE *) info->base_file);
}