Protected debugging code. (duh)
authorKim Knuttila <krk@cygnus>
Wed, 13 Dec 1995 16:22:02 +0000 (16:22 +0000)
committerKim Knuttila <krk@cygnus>
Wed, 13 Dec 1995 16:22:02 +0000 (16:22 +0000)
bfd/ChangeLog
bfd/coff-ppc.c

index e1f5d47ef9decc4dc46189136561405beb301de3..4f6ef0f92b5d5e344a86c568dc69af05d75aa253 100644 (file)
@@ -1,3 +1,7 @@
+Wed Dec 13 11:07:45 1995  Kim Knuttila  <krk@cygnus.com>
+
+       * coff-ppc.c (coff_ppc_relocate_section): removed debugging code.
+
 Tue Dec 12 17:42:06 1995  Kim Knuttila  <krk@cygnus.com>
 
        * peicode.h (pe_print_reloc): New function to dump the .reloc section.
index 7008109322446a3cdcb4c4015900e77b30f42d10..00509a3059b640d49de0cd645575995c846130bd 100644 (file)
@@ -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);
            }