bfd/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 24 Dec 2011 16:31:39 +0000 (16:31 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Sat, 24 Dec 2011 16:31:39 +0000 (16:31 +0000)
* elf32-rl78.c (rl78_elf_relocate_section, rl78_dump_symtab)
(rl78_elf_relax_section): Remove debug prints.

bfd/ChangeLog
bfd/elf32-rl78.c

index 2dd6940fd6b2a27eceb5472758e683f4cfcd0dcb..9af956551627015efc12f55e327a735d78ec6da9 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * elf32-rl78.c (rl78_elf_relocate_section, rl78_dump_symtab)
+       (rl78_elf_relax_section): Remove debug prints.
+
 2011-12-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * elf32-rl78.c (rl78_elf_relocate_section, rl78_elf_relax_section): Use
index d40821856413635a8a2dbdb1fbcfa26977ece56d..9cc3697bc0ff6c6223c762539fcc021e4028bc1e 100644 (file)
@@ -497,8 +497,6 @@ rl78_elf_relocate_section
            else
              plt_offset = elf_local_got_offsets (input_bfd) + r_symndx;
 
-           /*      printf("%s: rel %x plt %d\n", h ? h->root.root.string : "(none)",
-                   relocation, *plt_offset);*/
            if (! valid_16bit_address (relocation))
              {
                /* If this is the first time we've processed this symbol,
@@ -651,16 +649,13 @@ rl78_elf_relocate_section
          break;
 
        case R_RL78_RH_SFR:
-         printf("SFR 0x%" BFD_VMA_FMT "x\n", relocation);
          RANGE (0xfff00, 0xfffff);
          OP (0) = relocation & 0xff;
          break;
 
        case R_RL78_RH_SADDR:
-         printf("SADDR 0x%" BFD_VMA_FMT "x\n", relocation);
          RANGE (0xffe20, 0xfff1f);
          OP (0) = relocation & 0xff;
-         printf(" - in\n");
          break;
 
          /* Complex reloc handling:  */
@@ -1139,18 +1134,6 @@ rl78_dump_symtab (bfd * abfd, void * internal_syms, void * external_syms)
        case SHN_UNDEF: st_shndx_str = "SHN_UNDEF";
        default: st_shndx_str = "";
        }
-
-      printf ("isym = %p st_value = %lx st_size = %lx st_name = (%lu) %s "
-             "st_info = (%d) %s %s st_other = (%d) %s st_shndx = (%d) %s\n",
-             isym,
-             (unsigned long) isym->st_value,
-             (unsigned long) isym->st_size,
-             isym->st_name,
-             bfd_elf_string_from_elf_section (abfd, symtab_hdr->sh_link,
-                                              isym->st_name),
-             isym->st_info, st_info_str, st_info_stb_str,
-             isym->st_other, st_other_str,
-             isym->st_shndx, st_shndx_str);
     }
   if (free_internal)
     free (internal_syms);
@@ -2396,10 +2379,6 @@ rl78_elf_relax_section
 
          GET_RELOC;
 
-         printf ("relax_addr16 detected, "
-                 "symval 0x%" BFD_VMA_FMT "x %02x %02x\n",
-                 symval, insn[0], insn[1]);
-
          if (0xffe20 <= symval && symval <= 0xfffff)
            {
 
@@ -2429,14 +2408,12 @@ rl78_elf_relax_section
                    {
                      insn[poff] = relax_addr16[idx].insn_for_sfr;
                      SNIP (poff+2, 1, R_RL78_RH_SFR);
-                     printf(" - replaced by SFR\n");
                    }
 
                  else if  (is_saddr && relax_addr16[idx].insn_for_saddr != -1)
                    {
                      insn[poff] = relax_addr16[idx].insn_for_saddr;
                      SNIP (poff+2, 1, R_RL78_RH_SADDR);
-                     printf(" - replaced by SADDR\n");
                    }
                
                }
This page took 0.031624 seconds and 4 git commands to generate.