PR17074 - ignore line terminator characters found inside strings.
[deliverable/binutils-gdb.git] / bfd / coff-a29k.c
index b1d15dcde75667e364fae12cbbc4087c68fd8c1e..bbf23eed981a4643477fc1f6bc2729b8f32625e8 100644 (file)
@@ -118,7 +118,7 @@ a29k_reloc (abfd, reloc_entry, symbol_in, data, input_section, output_bfd,
   if ((part1_consth_active) && (r_type != R_IHCONST)) 
   {
     part1_consth_active = false;
-    *error_message = (char *) "Missing IHCONST";
+    *error_message = (char *) _("Missing IHCONST");
     return(bfd_reloc_dangerous);
   }
 
@@ -178,7 +178,7 @@ a29k_reloc (abfd, reloc_entry, symbol_in, data, input_section, output_bfd,
     /* consth, part 2 
        Now relocate the reference */
     if (part1_consth_active == false) {
-      *error_message = (char *) "Missing IHIHALF";
+      *error_message = (char *) _("Missing IHIHALF");
       return(bfd_reloc_dangerous);
     }
     /* sym_ptr_ptr = r_symndx, in coff_slurp_reloc_table() */
@@ -210,7 +210,7 @@ a29k_reloc (abfd, reloc_entry, symbol_in, data, input_section, output_bfd,
     bfd_put_32(abfd, insn, hit_data);
     break;
    default:
-    *error_message = "Unrecognized reloc";
+    *error_message = _("Unrecognized reloc");
     return (bfd_reloc_dangerous);
   }
 
@@ -353,7 +353,7 @@ coff_a29k_relocate_section (output_bfd, info, input_bfd, input_section,
       symndx = rel->r_symndx;
       loc = contents + rel->r_vaddr - input_section->vma;
 
-      if (symndx == -1)
+      if (symndx == -1 || rel->r_type == R_IHCONST)
        h = NULL;
       else
        h = obj_coff_sym_hashes (input_bfd)[symndx];
@@ -403,7 +403,7 @@ coff_a29k_relocate_section (output_bfd, info, input_bfd, input_section,
          if (hihalf)
            {
              if (! ((*info->callbacks->reloc_dangerous)
-                    (info, "missing IHCONST reloc", input_bfd,
+                    (info, _("missing IHCONST reloc"), input_bfd,
                      input_section, rel->r_vaddr - input_section->vma)))
                return false;
              hihalf = false;
@@ -494,7 +494,7 @@ coff_a29k_relocate_section (output_bfd, info, input_bfd, input_section,
          if (! hihalf)
            {
              if (! ((*info->callbacks->reloc_dangerous)
-                    (info, "missing IHIHALF reloc", input_bfd,
+                    (info, _("missing IHIHALF reloc"), input_bfd,
                      input_section, rel->r_vaddr - input_section->vma)))
                return false;
              hihalf_val = 0;
This page took 0.023941 seconds and 4 git commands to generate.