+2018-02-26  Alan Modra  <amodra@gmail.com>
+
+       * elf-m10300.c, * elf-s390-common.c, * elf32-arc.c, * elf32-cris.c,
+       * elf32-dlx.c, * elf32-frv.c, * elf32-i370.c, * elf32-lm32.c,
+       * elf32-m32r.c, * elf32-m68hc1x.c, * elf32-m68k.c,
+       * elf32-microblaze.c, * elf32-msp430.c, * elf32-nds32.c,
+       * elf32-nios2.c, * elf32-or1k.c, * elf32-rl78.c, * elf32-rx.c,
+       * elf32-score.c, * elf32-score7.c, * elf32-sh-symbian.c,
+       * elf32-sh.c, * elf32-spu.c, * elf32-v850.c, * elf32-xtensa.c,
+       * elf64-alpha.c, * elf64-ia64-vms.c, * elf64-mmix.c,
+       * elf64-sh64.c, * elf64-sparc.c, * elfnn-ia64.c, * elfxx-tilegx.c,
+       * mmo.c, * osf-core.c, * srec.c, * vms-alpha.c: Standardize
+       error/warning messages.
+
 2018-02-26  Alan Modra  <amodra@gmail.com>
 
        * archive.c, * bfd.c, * linker.c, * reloc.c, * stabs.c,
 
     default:
       _bfd_error_handler
        /* xgettext:c-format */
-       (_("%pB: Unsupported transition from %s to %s"),
+       (_("%pB: unsupported transition from %s to %s"),
         input_bfd,
         elf_mn10300_howto_table[r_type].name,
         elf_mn10300_howto_table[tls_r_type].name);
 
   if (in_attr->i > 2)
     _bfd_error_handler
       /* xgettext:c-format */
-      (_("Warning: %pB uses unknown vector ABI %d"), ibfd,
+      (_("warning: %pB uses unknown vector ABI %d"), ibfd,
        in_attr->i);
   else if (out_attr->i > 2)
     _bfd_error_handler
       /* xgettext:c-format */
-      (_("Warning: %pB uses unknown vector ABI %d"), obfd,
+      (_("warning: %pB uses unknown vector ABI %d"), obfd,
        out_attr->i);
   else if (in_attr->i != out_attr->i)
     {
 
          _bfd_error_handler
            /* xgettext:c-format */
-           (_("Warning: %pB uses vector %s ABI, %pB uses %s ABI"),
+           (_("warning: %pB uses vector %s ABI, %pB uses %s ABI"),
             ibfd, abi_str[in_attr->i], obfd, abi_str[out_attr->i]);
        }
       if (in_attr->i > out_attr->i)
 
              /* It's sometimes ok to mix different configs, so this is only
                 a warning.  */
              _bfd_error_handler
-               (_("Warning: %pB: Conflicting platform configuration "
-                  "%s with %s.\n"), ibfd,
+               (_("warning: %pB: conflicting platform configuration "
+                  "%s with %s"), ibfd,
                 tagval[in_attr[i].i],
                 tagval[out_attr[i].i]);
            }
              /* We cannot mix code for different CPUs.  */
              _bfd_error_handler
                (_("error: %pB: unable to merge CPU base attributes "
-                  "%s with %s.\n"),
+                  "%s with %s"),
                 obfd,
                 tagval[in_attr[i].i],
                 tagval[out_attr[i].i]);
                  {
                    _bfd_error_handler
                      (_("error: %pB: unable to merge ISA extension attributes "
-                        "%s.\n"),
+                        "%s"),
                       obfd, bfd_feature_list[j].name);
                    result = FALSE;
                    break;
                      }
                    _bfd_error_handler
                      (_("error: %pB: conflicting ISA extension attributes "
-                        "%s with %s.\n"),
+                        "%s with %s"),
                       obfd, p1, p2);
                    result = FALSE;
                    break;
            {
              /* We cannot mix code with rf16 and without.  */
              _bfd_error_handler
-               (_("error: %pB: cannot mix rf16 with full register set %pB.\n"),
+               (_("error: %pB: cannot mix rf16 with full register set %pB"),
                 obfd, ibfd);
              result = FALSE;
            }
                && out_attr[i].i != in_attr[i].i)
              {
                _bfd_error_handler
-                 (_("error: %pB: conflicting attributes %s: %s with %s.\n"),
+                 (_("error: %pB: conflicting attributes %s: %s with %s"),
                   obfd, tagname,
                   tagval[in_attr[i].i],
                   tagval[out_attr[i].i]);
              && out_attr[i].i != in_attr[i].i)
            {
              _bfd_error_handler
-               (_("error: %pB: conflicting attributes %s.\n"),
+               (_("error: %pB: conflicting attributes %s"),
                 obfd, tagname);
              result = FALSE;
            }
       if (mach_ibfd != mach_obfd)
        {
          /* xgettext:c-format */
-         _bfd_error_handler (_("ERROR: Attempting to link %pB "
+         _bfd_error_handler (_("error: attempting to link %pB "
                                "with a binary %pB of different architecture"),
                              ibfd, obfd);
          return FALSE;
       if (e_machine == EM_ARC)
        {
          _bfd_error_handler
-           (_("Error: The ARC4 architecture is no longer supported.\n"));
+           (_("error: the ARC4 architecture is no longer supported"));
          return FALSE;
        }
       else
        {
          _bfd_error_handler
-           (_("Warning: unset or old architecture flags. \n"
-              "               Use default machine.\n"));
+           (_("warning: unset or old architecture flags; "
+              "use default machine"));
        }
     }
 
          && !reloc_data.sdata_begin_symbol_vma_set)
        {
          _bfd_error_handler
-           ("Error: Linker symbol __SDATA_BEGIN__ not found");
+           ("error: linker symbol __SDATA_BEGIN__ not found");
          bfd_set_error (bfd_error_bad_value);
          return FALSE;
        }
          && reloc_data.sym_section == NULL)
        {
          _bfd_error_handler
-           (_("GOT and PLT relocations cannot be fixed with a non dynamic linker."));
+           (_("GOT and PLT relocations cannot be fixed with a non dynamic linker"));
          bfd_set_error (bfd_error_bad_value);
          return FALSE;
        }
                  name = "UNKNOWN";
                _bfd_error_handler
                  /* xgettext:c-format */
-                 (_("\
-%pB: relocation %s against `%s' can not be used when making a shared object; recompile with -fPIC"),
-                   abfd,
-                   arc_elf_howto (r_type)->name,
-                   name);
+                 (_("%pB: relocation %s against `%s' can not be used"
+                    " when making a shared object; recompile with -fPIC"),
+                  abfd,
+                  arc_elf_howto (r_type)->name,
+                  name);
                bfd_set_error (bfd_error_bad_value);
                return FALSE;
              }
   if ((tag & 127) < (Tag_ARC_ISA_mpy_option + 1))
     {
       _bfd_error_handler
-       (_("%pB: Unknown mandatory ARC object attribute %d."),
+       (_("%pB: unknown mandatory ARC object attribute %d"),
         abfd, tag);
       bfd_set_error (bfd_error_bad_value);
       return FALSE;
   else
     {
       _bfd_error_handler
-       (_("Warning: %pB: Unknown ARC object attribute %d."),
+       (_("warning: %pB: unknown ARC object attribute %d"),
         abfd, tag);
       return TRUE;
     }
 
              _bfd_error_handler
                ((h->got.offset == (bfd_vma) -1)
                 /* xgettext:c-format */
-                ? _("%pB, section %pA: No PLT nor GOT for relocation %s"
+                ? _("%pB, section %pA: no PLT nor GOT for relocation %s"
                     " against symbol `%s'")
                 /* xgettext:c-format */
-                : _("%pB, section %pA: No PLT for relocation %s"
+                : _("%pB, section %pA: no PLT for relocation %s"
                     " against symbol `%s'"),
                 input_bfd,
                 input_section,
                {
                  _bfd_error_handler
                    /* xgettext:c-format */
-                   (_("%pB, section %pA:\n  v10/v32 compatible object"
+                   (_("%pB, section %pA: v10/v32 compatible object"
                       " must not contain a PIC relocation"),
                     abfd, sec);
                  return FALSE;
              /* FIXME: How do we make this optionally a warning only?  */
              _bfd_error_handler
                /* xgettext:c-format */
-               (_("%pB, section %pA:\n  relocation %s should not"
+               (_("%pB, section %pA: relocation %s should not"
                   " be used in a shared object; recompile with -fPIC"),
                 abfd,
                 sec,
        /* FIXME: How do we make this optionally a warning only?  */
        _bfd_error_handler
          /* xgettext:c-format */
-         (_("%pB, section `%pA', to symbol `%s':\n"
-            "  relocation %s should not be used"
+         (_("%pB, section `%pA', to symbol `%s':"
+            " relocation %s should not be used"
             " in a shared object; recompile with -fPIC"),
           s->section->owner,
           s->section,
 
     default:
       _bfd_abort (__FILE__, __LINE__,
-                 _("Unexpected machine number"));
+                 _("unexpected machine number"));
     }
 
   elf_elfheader (abfd)->e_flags = e_flags;
 
   if (strcmp (input_section->name, symbol->section->output_section->name) != 0)
     {
       _bfd_error_handler
-       (_("BFD Link Error: branch (PC rel16) to section (%s) not supported"),
+       (_("branch (PC rel16) to section (%s) not supported"),
         symbol->section->output_section->name);
       return bfd_reloc_undefined;
     }
   if (strcmp (input_section->name, symbol->section->output_section->name) != 0)
     {
       _bfd_error_handler
-       (_("BFD Link Error: jump (PC rel26) to section (%s) not supported"),
+       (_("jump (PC rel26) to section (%s) not supported"),
         symbol->section->output_section->name);
       return bfd_reloc_undefined;
     }
 
                    if (addend)
                      {
                        info->callbacks->einfo
-                         (_("%H: R_FRV_FUNCDESC references dynamic symbol"
+                         (_("%H: %s references dynamic symbol"
                             " with nonzero addend\n"),
-                          input_bfd, input_section, rel->r_offset);
+                          input_bfd, input_section, rel->r_offset,
+                          "R_FRV_FUNCDESC");
                        return FALSE;
                      }
                    dynindx = h->dynindx;
                if (addend && r_type == R_FRV_FUNCDESC_VALUE)
                  {
                    info->callbacks->einfo
-                     (_("%H: R_FRV_FUNCDESC_VALUE"
-                        " references dynamic symbol with nonzero addend\n"),
-                      input_bfd, input_section, rel->r_offset);
+                     (_("%H: %s references dynamic symbol"
+                        " with nonzero addend\n"),
+                      input_bfd, input_section, rel->r_offset,
+                      "R_FRV_FUNCDESC_VALUE");
                    return FALSE;
                  }
                dynindx = h->dynindx;
 
       Elf_Internal_Sym *sym         = NULL;
       asection *sec                 = NULL;
       struct elf_link_hash_entry * h = NULL;
-      const char *sym_name          = NULL;
       reloc_howto_type *howto;
       unsigned long r_symndx;
       bfd_vma relocation;
        {
          sym = local_syms + r_symndx;
          sec = local_sections[r_symndx];
-         sym_name = "<local symbol>";
 
          relocation = _bfd_elf_rela_local_sym (output_bfd, sym, & sec, rel);
          addend = rel->r_addend;
          while (h->root.type == bfd_link_hash_indirect
                 || h->root.type == bfd_link_hash_warning)
            h = (struct elf_link_hash_entry *) h->root.u.i.link;
-         sym_name = h->root.root.string;
          if (h->root.type == bfd_link_hash_defined
              || h->root.type == bfd_link_hash_defweak)
            {
 
        case (int) R_I370_COPY:
        case (int) R_I370_RELATIVE:
-         _bfd_error_handler
-           /* xgettext:c-format */
-           (_("%pB: Relocation %s is not yet supported for symbol %s."),
-            input_bfd,
-            i370_elf_howto_table[(int) r_type]->name,
-            sym_name);
-
+         /* xgettext:c-format */
+         _bfd_error_handler (_("%pB: %s unsupported"),
+                             input_bfd,
+                             i370_elf_howto_table[(int) r_type]->name);
          bfd_set_error (bfd_error_invalid_operation);
          ret = FALSE;
          continue;
        }
 
-#ifdef DEBUG
-      fprintf (stderr, "\ttype = %s (%d), name = %s, symbol index = %ld, offset = %ld, addend = %ld\n",
-              howto->name,
-              (int)r_type,
-              sym_name,
-              r_symndx,
-              (long) offset,
-              (long) addend);
-#endif
-
       r = _bfd_final_link_relocate (howto, input_bfd, input_section, contents,
                                    offset, relocation, addend);
 
 
 
              /* Addend should be zero.  */
              if (rel->r_addend != 0)
-               _bfd_error_handler (_("internal error: addend should be zero for R_LM32_16_GOT"));
+               _bfd_error_handler
+                 (_("internal error: addend should be zero for %s"),
+                  "R_LM32_16_GOT");
 
              r = _bfd_final_link_relocate (howto,
                                            input_bfd,
 
                  {
                    _bfd_error_handler
                      /* xgettext:c-format */
-                     (_("%pB: The target (%s) of an %s relocation is in the wrong section (%pA)"),
+                     (_("%pB: the target (%s) of an %s relocation"
+                        " is in the wrong section (%pA)"),
                       input_bfd,
                       sym_name,
                       m32r_elf_howto_table[(int) r_type].name,
          || ((in_flags  & EF_M32R_ARCH) == E_M32R2_ARCH))
        {
          _bfd_error_handler
-           (_("%pB: Instruction set mismatch with previous modules"), ibfd);
+           (_("%pB: instruction set mismatch with previous modules"), ibfd);
 
          bfd_set_error (bfd_error_bad_value);
          return FALSE;
 
          /* Get virtual address of instruction having the relocation.  */
          if (is_far)
            {
-             msg = _("Reference to the far symbol `%s' using a wrong "
+             msg = _("reference to the far symbol `%s' using a wrong "
                      "relocation may result in incorrect execution");
              buf = xmalloc (strlen (msg) + strlen (name) + 10);
              sprintf (buf, msg, name);
 
       if (got->n_slots[R_8] > ELF_M68K_R_8_MAX_N_SLOTS_IN_GOT (info))
        /* xgettext:c-format */
        _bfd_error_handler (_("%pB: GOT overflow: "
-                             "Number of relocations with 8-bit "
+                             "number of relocations with 8-bit "
                              "offset > %d"),
                            abfd,
                            ELF_M68K_R_8_MAX_N_SLOTS_IN_GOT (info));
       else
        /* xgettext:c-format */
        _bfd_error_handler (_("%pB: GOT overflow: "
-                             "Number of relocations with 8- or 16-bit "
+                             "number of relocations with 8- or 16-bit "
                              "offset > %d"),
                            abfd,
                            ELF_M68K_R_8_16_MAX_N_SLOTS_IN_GOT (info));
 
                      {
                        _bfd_error_handler
                          /* xgettext:c-format */
-                         (_("%pB: The target (%s) of an %s relocation"
+                         (_("%pB: the target (%s) of an %s relocation"
                             " is in the wrong section (%pA)"),
                           input_bfd,
                           sym_name,
                      {
                        _bfd_error_handler
                          /* xgettext:c-format */
-                         (_("%pB: The target (%s) of an %s relocation"
+                         (_("%pB: the target (%s) of an %s relocation"
                             " is in the wrong section (%pA)"),
                           input_bfd,
                           sym_name,
 
                  {
                    info->callbacks->warning
                      (info,
-                      _("Try enabling relaxation to avoid relocation truncations"),
+                      _("try enabling relaxation to avoid relocation truncations"),
                       NULL, input_bfd, input_section, relocation);
                    warned = TRUE;
                  }
                {
                  info->callbacks->warning
                    (info,
-                    _("Try enabling relaxation to avoid relocation truncations"),
+                    _("try enabling relaxation to avoid relocation truncations"),
                     NULL, input_bfd, input_section, relocation);
                  warned = TRUE;
                }
 {
   _bfd_error_handler
     /* xgettext:c-format */
-    (_("Warning: %pB: Unknown MSPABI object attribute %d"),
+    (_("warning: %pB: unknown MSPABI object attribute %d"),
      abfd, tag);
   return TRUE;
 }
 
        }
       else
        {
-         _bfd_error_handler (_("error: Can't find symbol: _SDA_BASE_."));
+         _bfd_error_handler (_("error: can't find symbol: %s"), "_SDA_BASE_");
          return bfd_reloc_dangerous;
        }
     }
       /* Set the _ITB_BASE_.  */
       if (!nds32_elf_ex9_itb_base (info))
        {
-         _bfd_error_handler (_("%pB: error: Cannot set _ITB_BASE_"),
-                             output_bfd);
+         _bfd_error_handler (_("%pB: error: cannot set %s"),
+                             output_bfd, "_ITB_BASE_");
          bfd_set_error (bfd_error_bad_value);
        }
     }
 
   if (table->target_optimize & NDS32_RELAX_JUMP_IFC_ON)
     if (!nds32_elf_ifc_reloc ())
-      _bfd_error_handler (_("error: IFC relocation error."));
+      _bfd_error_handler (_("error: IFC relocation error"));
 
  /* Relocation for .ex9.itable.  */
   if (table->target_optimize & NDS32_RELAX_EX9_ON
          if (bfd_link_pic (info))
            {
              _bfd_error_handler
-               (_("%pB: warning: cannot deal R_NDS32_25_ABS_RELA in shared "
-                  "mode."), input_bfd);
+               (_("%pB: warning: %s unsupported in shared mode"),
+                input_bfd, "R_NDS32_25_ABS_RELA");
              return FALSE;
            }
          break;
            {
              /* Incorrect alignment.  */
              _bfd_error_handler
-               (_("%pB: warning: unaligned access to GOT entry."), input_bfd);
+               (_("%pB: warning: unaligned access to GOT entry"), input_bfd);
              ret = FALSE;
              r = bfd_reloc_dangerous;
              goto check_reloc;
              if (r != bfd_reloc_ok)
                {
                  _bfd_error_handler
-                   (_("%pB: warning: relocate SDA_BASE failed."), input_bfd);
+                   (_("%pB: warning: relocate SDA_BASE failed"), input_bfd);
                  ret = FALSE;
                  goto check_reloc;
                }
                  /* Incorrect alignment.  */
                  _bfd_error_handler
                    /* xgettext:c-format */
-                   (_("%pB(%pA): warning: unaligned small data access of type %d."),
+                   (_("%pB(%pA): warning: unaligned small data access"
+                      " of type %d"),
                     input_bfd, input_section, r_type);
                  ret = FALSE;
                  goto check_reloc;
   if (bfd_little_endian (ibfd) != bfd_little_endian (obfd))
     {
       _bfd_error_handler
-       (_("%pB: warning: Endian mismatch with previous modules."), ibfd);
+       (_("%pB: warning: endian mismatch with previous modules"), ibfd);
 
       bfd_set_error (bfd_error_bad_value);
       return FALSE;
   if (in_version == E_NDS32_ELF_VER_1_2)
     {
       _bfd_error_handler
-       (_("%pB: warning: Older version of object file encountered, "
-          "Please recompile with current tool chain."), ibfd);
+       (_("%pB: warning: older version of object file encountered, "
+          "please recompile with current tool chain"), ibfd);
     }
 
   /* We may need to merge V1 and V2 arch object files to V2.  */
   if ((in_flags & EF_NDS_ABI) != (out_flags & EF_NDS_ABI))
     {
       _bfd_error_handler
-       (_("%pB: error: ABI mismatch with previous modules."), ibfd);
+       (_("%pB: error: ABI mismatch with previous modules"), ibfd);
 
       bfd_set_error (bfd_error_bad_value);
       return FALSE;
       if (((in_flags & EF_NDS_ARCH) != E_N1_ARCH))
        {
          _bfd_error_handler
-           (_("%pB: error: Instruction set mismatch with previous modules."), ibfd);
+           (_("%pB: error: instruction set mismatch with previous modules"),
+            ibfd);
 
          bfd_set_error (bfd_error_bad_value);
          return FALSE;
       if (in_version != out_version)
        _bfd_error_handler
          /* xgettext:c-format */
-         (_("%pB: warning: Incompatible elf-versions %s and  %s."),
+         (_("%pB: warning: incompatible elf-versions %s and %s"),
           ibfd, nds32_elfver_strtab[out_version],
           nds32_elfver_strtab[in_version]);
 
                  && (blank_t2->offset > raddr
                      || blank_t2->next->offset <= raddr))
                _bfd_error_handler
-                 (_("%pB: Error: search_nds32_elf_blank reports wrong node\n"), abfd);
+                 (_("%pB: error: search_nds32_elf_blank reports wrong node"),
+                  abfd);
 
              /* Mark reloc in deleted portion as NONE.
                 For some relocs like R_NDS32_LABEL that doesn't modify the
          break;
        case NDS32_RELAX_JUMP_IFC_ROUND:
          if (!nds32_elf_ifc_finish (link_info))
-           _bfd_error_handler (_("error: Jump IFC Fail."));
+           _bfd_error_handler (_("error: jump IFC fail"));
          if (table->target_optimize & NDS32_RELAX_EX9_ON)
            {
              pass++;
            {
              /* Do jump IFC optimization again.  */
              if (!nds32_elf_ifc_finish (link_info))
-               _bfd_error_handler (_("error: Jump IFC Fail."));
+               _bfd_error_handler (_("error: jump IFC fail"));
            }
          break;
        default:
       /* Set the _ITB_BASE_.  */
       if (!nds32_elf_ex9_itb_base (link_info))
        {
-         _bfd_error_handler (_("%pB: error: Cannot set _ITB_BASE_"), abfd);
+         _bfd_error_handler (_("%pB: error: cannot set %s"),
+                             abfd, "_ITB_BASE_");
          bfd_set_error (bfd_error_bad_value);
        }
     }
          /* Begin of the region.  */
          if (begin_rel)
            /* xgettext:c-format */
-           _bfd_error_handler (_("%pB: Nested OMIT_FP in %pA."), abfd, sec);
+           _bfd_error_handler (_("%pB: nested OMIT_FP in %pA"), abfd, sec);
 
          begin_rel = irel;
          nds32_fag_init (&fag_head);
          if (begin_rel == NULL)
            {
              /* xgettext:c-format */
-             _bfd_error_handler (_("%pB: Unmatched OMIT_FP in %pA."), abfd, sec);
+             _bfd_error_handler (_("%pB: unmatched OMIT_FP in %pA"),
+                                 abfd, sec);
              continue;
            }
 
                              sizeof (struct elf_nds32_code_hash_entry),
                              1023))
     {
-      _bfd_error_handler (_("Linker: cannot init ex9 hash table error \n"));
+      _bfd_error_handler (_("cannot init ex9 hash table error"));
       return FALSE;
     }
   return TRUE;
                                         (fix_ptr->sec->owner, fix_ptr->sec,
                                          &source_contents, TRUE))
                                    _bfd_error_handler
-                                     (_("Linker: error cannot fixed ex9 relocation \n"));
+                                     (_("error: cannot fix ex9 relocation"));
                                  if (temp_ptr->order < 32)
                                    insn_ex9 = INSN_EX9_IT_2;
                                  else
 
          if (bfd_big_endian (ibfd))
            {
              _bfd_error_handler
-               (_("error: %pB: Big-endian R2 is not supported."), ibfd);
+               (_("error: %pB: big-endian R2 is not supported"), ibfd);
              bfd_set_error (bfd_error_bad_value);
              return FALSE;
            }
         architectures.  */
       _bfd_error_handler
        /* xgettext:c-format */
-       (_("error: %pB: Conflicting CPU architectures %d/%d"),
+       (_("error: %pB: conflicting CPU architectures %d/%d"),
         ibfd, new_flags, old_flags);
       bfd_set_error (bfd_error_bad_value);
       return FALSE;
                      if (h)
                        name = h->root.root.string;
                      /* xgettext:c-format */
-                     format = _("Unable to reach %s (at 0x%08x) from the "
+                     format = _("unable to reach %s (at 0x%08x) from the "
                                 "global pointer (at 0x%08x) because the "
                                 "offset (%d) is out of the allowed range, "
-                                "-32678 to 32767.\n" );
+                                "-32678 to 32767\n" );
                      sprintf (msgbuf, format, name, symbol_address, gp,
                               (signed)relocation);
                      msg = msgbuf;
 
          /* Addend should be zero.  */
          if (rel->r_addend != 0)
            _bfd_error_handler
-             (_("internal error: addend should be zero for R_OR1K_GOT16"));
+             (_("internal error: addend should be zero for %s"),
+              "R_OR1K_GOT16");
 
          break;
 
   if ((in_flags & EF_OR1K_NODELAY) != (out_flags & EF_OR1K_NODELAY))
     {
       _bfd_error_handler
-       (_("%pB: EF_OR1K_NODELAY flag mismatch with previous modules"), ibfd);
+       (_("%pB: %s flag mismatch with previous modules"),
+        ibfd, "EF_OR1K_NODELAY");
 
       bfd_set_error (bfd_error_bad_value);
       return FALSE;
 
       if (rl78_stack_top < NUM_STACK_ENTRIES)  \
        rl78_stack [rl78_stack_top ++] = (val); \
       else                                     \
-       _bfd_error_handler (_("Internal Error: RL78 reloc stack overflow")); \
+       _bfd_error_handler (_("internal error: RL78 reloc stack overflow")); \
     }                                          \
   while (0)
 
        (dest) = rl78_stack [-- rl78_stack_top];\
       else                                     \
        {                                       \
-         _bfd_error_handler (_("Internal Error: RL78 reloc stack underflow")); \
+         _bfd_error_handler (_("internal error: RL78 reloc stack underflow")); \
          (dest) = 0;                           \
        }                                       \
     }                                          \
            {
              relocation = 0;
              if (h->root.type != bfd_link_hash_undefweak)
-               _bfd_error_handler (_("Warning: RL78_SYM reloc with an unknown symbol"));
+               _bfd_error_handler
+                 (_("warning: RL78_SYM reloc with an unknown symbol"));
            }
          (void) rl78_compute_complex_reloc (r_type, relocation, input_section);
          break;
 
 
       r = bfd_reloc_ok;
 
-#define RANGE(a,b) if (a > (long) relocation || (long) relocation > b) r = bfd_reloc_overflow
-#define ALIGN(m)   if (relocation & m) r = bfd_reloc_other;
-#define OP(i)      (contents[rel->r_offset + (i)])
+#define RANGE(a,b) \
+  if (a > (long) relocation || (long) relocation > b)          \
+    r = bfd_reloc_overflow
+#define ALIGN(m) \
+  if (relocation & m)                                          \
+    r = bfd_reloc_other
+#define OP(i) \
+  (contents[rel->r_offset + (i)])
 #define WARN_REDHAT(type) \
-      /* xgettext:c-format */ \
-      _bfd_error_handler (_("%pB:%pA: Warning: deprecated Red Hat reloc " type " detected against: %s."), \
-      input_bfd, input_section, name)
+  /* xgettext:c-format */                                      \
+  _bfd_error_handler                                           \
+    (_("%pB:%pA: warning: deprecated Red Hat reloc "           \
+       "%s detected against: %s"),                             \
+     input_bfd, input_section, #type, name)
 
       /* Check for unsafe relocs in PID mode.  These are any relocs where
         an absolute address is being computed.  There are special cases
                               + sec->output_offset
                               + rel->r_addend);
              else
-               _bfd_error_handler (_("Warning: RX_SYM reloc with an unknown symbol"));
+               _bfd_error_handler
+                 (_("warning: RX_SYM reloc with an unknown symbol"));
            }
          break;
 
            }
          else
            {
-             _bfd_error_handler (_("There is a conflict merging the"
+             _bfd_error_handler (_("there is a conflict merging the"
                                    " ELF header flags from %pB"),
                                  ibfd);
              _bfd_error_handler (_("  the input  file's flags: %s"),
 
 
            /* Use bfd_reloc_other to check lw48, sw48 word align.  */
            case bfd_reloc_other:
-             msg = _("address not word align");
+             msg = _("address not word aligned");
              goto common_error;
 
            default:
        {
          _bfd_error_handler
            /* xgettext:c-format */
-           (_("%pB: Malformed reloc detected for section %pA"), abfd, sec);
+           (_("%pB: malformed reloc detected for section %pA"), abfd, sec);
          bfd_set_error (bfd_error_bad_value);
          return FALSE;
        }
 
        {
          _bfd_error_handler
            /* xgettext:c-format */
-           (_("%pB: Malformed reloc detected for section %pA"), abfd, sec);
+           (_("%pB: malformed reloc detected for section %pA"), abfd, sec);
          bfd_set_error (bfd_error_bad_value);
          return FALSE;
        }
 
 
          bfd_set_error (bfd_error_invalid_operation);
          /* xgettext:c-format */
-         _bfd_error_handler (_("%pB: Unrecognised .directive command: %s"),
+         _bfd_error_handler (_("%pB: unrecognized .directive command: %s"),
                              abfd, directive);
          break;
        }
          if (new_hash == NULL)
            {
              /* xgettext:c-format */
-             _bfd_error_handler (_("%pB: Failed to add renamed symbol %s"),
+             _bfd_error_handler (_("%pB: failed to add renamed symbol %s"),
                                  input_bfd, ptr->new_name);
              continue;
            }
 
          if ((sym->st_other & STO_SH5_ISA32) != 0)
            (*info->callbacks->reloc_dangerous)
              (info,
-              _("Unexpected STO_SH5_ISA32 on local symbol is not handled"),
+              _("unexpected STO_SH5_ISA32 on local symbol is not handled"),
               input_bfd, input_section, rel->r_offset);
 
          if (sec != NULL && discarded_section (sec))
 
              if ((s->vma - vma_start) & (htab->params->line_size - 1))
                {
                  info->callbacks->einfo (_("%X%P: overlay section %pA "
-                                           "does not start on a cache line.\n"),
+                                           "does not start on a cache line\n"),
                                          s);
                  bfd_set_error (bfd_error_bad_value);
                  return 0;
              else if (s->size > htab->params->line_size)
                {
                  info->callbacks->einfo (_("%X%P: overlay section %pA "
-                                           "is larger than a cache line.\n"),
+                                           "is larger than a cache line\n"),
                                          s);
                  bfd_set_error (bfd_error_bad_value);
                  return 0;
          if (s->vma < ovl_end)
            {
              info->callbacks->einfo (_("%X%P: overlay section %pA "
-                                       "is not in cache area.\n"),
+                                       "is not in cache area\n"),
                                      alloc_sec[i-1]);
              bfd_set_error (bfd_error_bad_value);
              return 0;
                      /* xgettext:c-format */
                      info->callbacks->einfo (_("%X%P: overlay sections %pA "
                                                "and %pA do not start at the "
-                                               "same address.\n"),
+                                               "same address\n"),
                                              s0, s);
                      bfd_set_error (bfd_error_bad_value);
                      return 0;
              const char *f2 = func_name (call->fun);
 
              /* xgettext:c-format */
-             info->callbacks->info (_("Stack analysis will ignore the call "
+             info->callbacks->info (_("stack analysis will ignore the call "
                                       "from %s to %s\n"),
                                     f1, f2);
            }
 
                  switch (h->other & V850_OTHER_MASK)
                    {
                    default:
-                     msg = _("Variable `%s' cannot occupy in multiple small data regions");
+                     msg = _("variable `%s' cannot occupy in multiple small data regions");
                      break;
                    case V850_OTHER_SDA | V850_OTHER_ZDA | V850_OTHER_TDA:
-                     msg = _("Variable `%s' can only be in one of the small, zero, and tiny data regions");
+                     msg = _("variable `%s' can only be in one of the small, zero, and tiny data regions");
                      break;
                    case V850_OTHER_SDA | V850_OTHER_ZDA:
-                     msg = _("Variable `%s' cannot be in both small and zero data regions simultaneously");
+                     msg = _("variable `%s' cannot be in both small and zero data regions simultaneously");
                      break;
                    case V850_OTHER_SDA | V850_OTHER_TDA:
-                     msg = _("Variable `%s' cannot be in both small and tiny data regions simultaneously");
+                     msg = _("variable `%s' cannot be in both small and tiny data regions simultaneously");
                      break;
                    case V850_OTHER_ZDA | V850_OTHER_TDA:
-                     msg = _("Variable `%s' cannot be in both zero and tiny data regions simultaneously");
+                     msg = _("variable `%s' cannot be in both zero and tiny data regions simultaneously");
                      break;
                    }
 
        }
       else
        {
-         _bfd_error_handler (_("FAILED to find previous HI16 reloc"));
+         _bfd_error_handler (_("failed to find previous HI16 reloc"));
          return FALSE;
        }
     }
       if ((in_flags & EF_V800_850E3) != (out_flags & EF_V800_850E3))
        {
          _bfd_error_handler
-           (_("%pB: Architecture mismatch with previous modules"), ibfd);
+           (_("%pB: architecture mismatch with previous modules"), ibfd);
          elf_elfheader (obfd)->e_flags |= EF_V800_850E3;
        }
 
        }
 
       _bfd_error_handler
-       (_("%pB: Architecture mismatch with previous modules"), ibfd);
+       (_("%pB: architecture mismatch with previous modules"), ibfd);
     }
 
   return result;
                {
                  _bfd_error_handler
                    /* xgettext:c-format */
-                   (_("%pB: %#" PRIx64 ": warning: R_V850_LONGCALL points to "
+                   (_("%pB: %#" PRIx64 ": warning: %s points to "
                       "unrecognized insns"),
-                    abfd, (uint64_t) irel->r_offset);
+                    abfd, (uint64_t) irel->r_offset, "R_V850_LONGCALL");
                  continue;
                }
 
                {
                  _bfd_error_handler
                    /* xgettext:c-format */
-                   (_("%pB: %#" PRIx64 ": warning: R_V850_LONGCALL points to "
+                   (_("%pB: %#" PRIx64 ": warning: %s points to "
                       "unrecognized insn %#x"),
                     abfd,
                     (uint64_t) (irel->r_offset + no_match),
+                    "R_V850_LONGCALL",
                     insn[no_match]);
                  continue;
                }
                {
                  _bfd_error_handler
                    /* xgettext:c-format */
-                   (_("%pB: %#" PRIx64 ": warning: R_V850_LONGCALL points to "
+                   (_("%pB: %#" PRIx64 ": warning: %s points to "
                       "unrecognized reloc"),
-                    abfd, (uint64_t) irel->r_offset);
+                    abfd, (uint64_t) irel->r_offset, "R_V850_LONGCALL");
 
                  continue;
                }
                {
                  _bfd_error_handler
                    /* xgettext:c-format */
-                   (_("%pB: %#" PRIx64 ": warning: R_V850_LONGCALL points to "
+                   (_("%pB: %#" PRIx64 ": warning: %s points to "
                       "unrecognized reloc %#" PRIx64),
-                    abfd, (uint64_t) irel->r_offset,
+                    abfd, (uint64_t) irel->r_offset, "R_V850_LONGCALL",
                     (uint64_t) irelcall->r_offset);
                  continue;
                }
                {
                  _bfd_error_handler
                    /* xgettext:c-format */
-                   (_("%pB: %#" PRIx64 ": warning: R_V850_LONGJUMP points to "
+                   (_("%pB: %#" PRIx64 ": warning: %s points to "
                       "unrecognized insns"),
-                    abfd, (uint64_t) irel->r_offset);
+                    abfd, (uint64_t) irel->r_offset, "R_V850_LONGJUMP");
                  continue;
                }
 
                {
                  _bfd_error_handler
                    /* xgettext:c-format */
-                   (_("%pB: %#" PRIx64 ": warning: R_V850_LONGJUMP points to "
+                   (_("%pB: %#" PRIx64 ": warning: %s points to "
                       "unrecognized insn %#x"),
                     abfd,
                     (uint64_t) (irel->r_offset + no_match),
+                    "R_V850_LONGJUMP",
                     insn[no_match]);
                  continue;
                }
                {
                  _bfd_error_handler
                    /* xgettext:c-format */
-                   (_("%pB: %#" PRIx64 ": warning: R_V850_LONGJUMP points to "
+                   (_("%pB: %#" PRIx64 ": warning: %s points to "
                       "unrecognized reloc"),
-                    abfd, (uint64_t) irel->r_offset);
+                    abfd, (uint64_t) irel->r_offset, "R_V850_LONGJUMP");
                  continue;
                }
 
 
     {
       _bfd_error_handler
        /* xgettext:c-format */
-       (_("%pB: incompatible machine type. Output is 0x%x. Input is 0x%x"),
+       (_("%pB: incompatible machine type; output is 0x%x; input is 0x%x"),
         ibfd, out_mach, in_mach);
       bfd_set_error (bfd_error_wrong_format);
       return FALSE;
 
   if (content_length < address)
     {
-      *error_message = _("Attempt to convert L32R/CALLX to CALL failed");
+      *error_message = _("attempt to convert L32R/CALLX to CALL failed");
       return bfd_reloc_other;
     }
 
   direct_call_opcode = swap_callx_for_call_opcode (opcode);
   if (direct_call_opcode == XTENSA_UNDEFINED)
     {
-      *error_message = _("Attempt to convert L32R/CALLX to CALL failed");
+      *error_message = _("attempt to convert L32R/CALLX to CALL failed");
       return bfd_reloc_other;
     }
 
 
       _bfd_error_handler
        /* xgettext:c-format */
        (_("%pB: %pA+%#" PRIx64 ": warning: "
-          "LITERAL relocation against unexpected insn"),
-        abfd, info->sec, (uint64_t) irel->r_offset);
+          "%s relocation against unexpected insn"),
+        abfd, info->sec, (uint64_t) irel->r_offset, "LITERAL");
       return TRUE;
     }
 
 
            {
              _bfd_error_handler
                /* xgettext:c-format */
-               (_("%pB: Can't relax br at %#" PRIx64 " in section `%pA'."
-                  " Please use brl or indirect branch."),
+               (_("%pB: can't relax br at %#" PRIx64 " in section `%pA';"
+                  " please use brl or indirect branch"),
                 sec->owner, (uint64_t) roff, sec);
              bfd_set_error (bfd_error_bad_value);
              goto error_return;
                  if (normal_bfd == NULL)
                    _bfd_error_handler
                      /* xgettext:c-format */
-                     (_("Warning: alignment %u of common symbol `%s' in %pB"
+                     (_("warning: alignment %u of common symbol `%s' in %pB"
                         " is greater than the alignment (%u) of its section %pA"),
                       1 << common_align, name, common_bfd,
                       1 << normal_align, h->root.u.def.section);
                  else
                    _bfd_error_handler
                      /* xgettext:c-format */
-                     (_("Warning: alignment %u of symbol `%s' in %pB"
+                     (_("warning: alignment %u of symbol `%s' in %pB"
                         " is smaller than %u in %pB"),
                       1 << normal_align, name, normal_bfd,
                       1 << common_align, common_bfd);
                  && ! size_change_ok)
                _bfd_error_handler
                  /* xgettext:c-format */
-                 (_("Warning: size of symbol `%s' changed"
+                 (_("warning: size of symbol `%s' changed"
                     " from %" PRIu64 " in %pB to %" PRIu64 " in %pB"),
                   name, (uint64_t) h->size, old_bfd,
                   (uint64_t) isym->st_size, abfd);
                  if (h->type != STT_NOTYPE && ! type_change_ok)
                    _bfd_error_handler
                      /* xgettext:c-format */
-                     (_("Warning: type of symbol `%s' changed"
+                     (_("warning: type of symbol `%s' changed"
                         " from %d to %d in %pB"),
                       name, h->type, type, abfd);
 
 
                     a verbose message.  */
                  *error_message
                    = _("invalid input relocation when producing"
-                       " non-ELF, non-mmo format output."
-                       "\n Please use the objcopy program to convert from"
+                       " non-ELF, non-mmo format output;"
+                       " please use the objcopy program to convert from"
                        " ELF or mmo,"
-                       "\n or assemble using"
+                       " or assemble using"
                        " \"-no-expand\" (for gcc, \"-Wa,-no-expand\"");
                  mmix_elf_section_data (isec)->has_warned_pushj = TRUE;
                  return bfd_reloc_dangerous;
                   a verbose message.  */
                *error_message
                  = _("invalid input relocation when producing"
-                     " non-ELF, non-mmo format output."
-                     "\n Please use the objcopy program to convert from"
+                     " non-ELF, non-mmo format output;"
+                     " please use the objcopy program to convert from"
                      " ELF or mmo,"
-                     "\n or compile using the gcc-option"
+                     " or compile using the gcc-option"
                      " \"-mno-base-addresses\".");
                mmix_elf_section_data (isec)->has_warned_bpo = TRUE;
                return bfd_reloc_dangerous;
            _bfd_error_handler
              /* xgettext:c-format */
              (_("%pB: LOCAL directive: "
-                "Register $%" PRId64 " is not a local register."
-                "  First global register is $%" PRId64 "."),
+                "register $%" PRId64 " is not a local register;"
+                " first global register is $%" PRId64),
               input_section->owner, (int64_t) srel, (int64_t) first_global);
 
            return bfd_reloc_overflow;
             h->u.def.section->owner is NULL.  */
          _bfd_error_handler
            /* xgettext:c-format */
-           (_("%pB: Error: multiple definition of `%s'; start of %s "
-              "is set in a earlier linked file\n"),
+           (_("%pB: error: multiple definition of `%s'; start of %s "
+              "is set in a earlier linked file"),
             abfd, *namep,
             *namep + strlen (MMIX_LOC_SECTION_START_SYMBOL_PREFIX));
           bfd_set_error (bfd_error_bad_value);
     {
       /* FIXME: Pass error state gracefully.  */
       if (bfd_get_section_flags (abfd, reg_section) & SEC_HAS_CONTENTS)
-       _bfd_abort (__FILE__, __LINE__, _("Register section has contents\n"));
+       _bfd_abort (__FILE__, __LINE__, _("register section has contents\n"));
 
       /* Really remove the section, if it hasn't already been done.  */
       if (!bfd_section_removed_from_list (abfd, reg_section))
     {
       _bfd_error_handler
        /* xgettext:c-format */
-       (_("Internal inconsistency: remaining %lu != max %lu.\n\
-  Please report this bug."),
+       (_("internal inconsistency: remaining %lu != max %lu;"
+          " please report this bug"),
         (unsigned long) gregdata->n_remaining_bpo_relocs_this_relaxation_round,
         (unsigned long) gregdata->n_bpo_relocs);
       return FALSE;
 
          if ((sym->st_other & STO_SH5_ISA32) != 0)
            (*info->callbacks->reloc_dangerous)
              (info,
-              _("Unexpected STO_SH5_ISA32 on local symbol is not handled"),
+              _("unexpected STO_SH5_ISA32 on local symbol is not handled"),
               input_bfd, input_section, rel->r_offset);
 
          if (sec != NULL && discarded_section (sec))
 
        case 6: reg -= 4; break;
        default:
          _bfd_error_handler
-           (_("%pB: Only registers %%g[2367] can be declared using STT_REGISTER"),
+           (_("%pB: only registers %%g[2367] can be declared using STT_REGISTER"),
             abfd);
          return FALSE;
        }
        {
          _bfd_error_handler
            /* xgettext:c-format */
-           (_("Register %%g%d used incompatibly: %s in %pB,"
+           (_("register %%g%d used incompatibly: %s in %pB,"
               " previously %s in %pB"),
             (int) sym->st_value, **namep ? *namep : "#scratch", abfd,
             *p->name ? p->name : "#scratch", p->abfd);
                    type = 0;
                  _bfd_error_handler
                    /* xgettext:c-format */
-                   (_("Symbol `%s' has differing types: REGISTER in %pB,"
+                   (_("symbol `%s' has differing types: REGISTER in %pB,"
                       " previously %s in %pB"),
                     *namep, abfd, stt_types[type], p->abfd);
                  return FALSE;
 
            {
              _bfd_error_handler
                /* xgettext:c-format */
-               (_("%pB: Can't relax br at %#" PRIx64 " in section `%pA'."
-                  " Please use brl or indirect branch."),
+               (_("%pB: can't relax br at %#" PRIx64 " in section `%pA';"
+                  " please use brl or indirect branch"),
                 sec->owner, (uint64_t) roff, sec);
              bfd_set_error (bfd_error_bad_value);
              goto error_return;
 
     {
       _bfd_error_handler
        /* xgettext:c-format */
-       (_("%pB: Cannot link together %s and %s objects."),
+       (_("%pB: cannot link together %s and %s objects"),
         ibfd, targ1, targ2);
       bfd_set_error (bfd_error_bad_value);
       return FALSE;
 
        {
          _bfd_error_handler
            /* xgettext:c-format */
-           (_("%pB: No core to allocate section name %s\n"),
+           (_("%pB: no core to allocate section name %s"),
             abfd, secname);
          bfd_set_error (bfd_error_system_call);
          return NULL;
     {
       _bfd_error_handler
        /* xgettext:c-format */
-       (_("%pB: No core to allocate a symbol %d bytes long\n"),
+       (_("%pB: no core to allocate a symbol %d bytes long"),
         abfd, abfd->tdata.mmo_data->max_symbol_length);
       goto bad_final;
     }
 
            _bfd_error_handler
              /* xgettext:c-format */
-             (_("%pB: Bad symbol definition: `Main' set to %s rather"
+             (_("%pB: bad symbol definition: `Main' set to %s rather"
                 " than the start address %s\n"),
               abfd, vmas_main, vmas_start);
            bfd_set_error (bfd_error_bad_value);
 
          flags = SEC_HAS_CONTENTS;
          break;
        default:
-         _bfd_error_handler (_("Unhandled OSF/1 core file section type %d\n"),
+         _bfd_error_handler (_("unhandled OSF/1 core file section type %d"),
                              core_scnhdr.scntype);
          continue;
        }
 
        }
       _bfd_error_handler
        /* xgettext:c-format */
-       (_("%pB:%d: Unexpected character `%s' in S-record file\n"),
+       (_("%pB:%d: unexpected character `%s' in S-record file"),
         abfd, lineno, buf);
       bfd_set_error (bfd_error_bad_value);
     }
            if (bytes < min_bytes)
              {
                /* xgettext:c-format */
-               _bfd_error_handler (_("%pB:%d: byte count %d too small\n"),
+               _bfd_error_handler (_("%pB:%d: byte count %d too small"),
                                    abfd, lineno, bytes);
                bfd_set_error (bfd_error_bad_value);
                goto error_return;
                  {
                    _bfd_error_handler
                      /* xgettext:c-format */
-                     (_("%pB:%d: Bad checksum in S-record file\n"),
+                     (_("%pB:%d: bad checksum in S-record file"),
                       abfd, lineno);
                    bfd_set_error (bfd_error_bad_value);
                    goto error_return;
                  {
                    _bfd_error_handler
                      /* xgettext:c-format */
-                     (_("%pB:%d: Bad checksum in S-record file\n"),
+                     (_("%pB:%d: bad checksum in S-record file"),
                       abfd, lineno);
                    bfd_set_error (bfd_error_bad_value);
                    goto error_return;
 
   /* PR 21813: Check for an undersized record.  */
   if (PRIV (recrd.buf_size) < sizeof (* eihd))
     {
-      _bfd_error_handler (_("Corrupt EIHD record - size is too small"));
+      _bfd_error_handler (_("corrupt EIHD record - size is too small"));
       bfd_set_error (bfd_error_bad_value);
       return FALSE;
     }
   /* PR 21611: Check that offset is valid.  */
   if (offset > PRIV (recrd.rec_size) - (EIHS__L_DMTBYTES + 4))
     {
-      _bfd_error_handler (_("Unable to read EIHS record at offset %#x"), offset);
+      _bfd_error_handler (_("unable to read EIHS record at offset %#x"),
+                         offset);
       bfd_set_error (bfd_error_file_truncated);
       return FALSE;
     }
 
   if (PRIV (recrd.rec_size) < 8)
     {
-      _bfd_error_handler (_("Corrupt EGSD record: its size (%#x) is too small"),
+      _bfd_error_handler (_("corrupt EGSD record: its size (%#x) is too small"),
                          PRIV (recrd.rec_size));
       bfd_set_error (bfd_error_bad_value);
       return FALSE;
       /* PR 21615: Check for size overflow.  */
       if (PRIV (recrd.rec_size) < gsd_size)
        {
-         _bfd_error_handler (_("Corrupt EGSD record: size (%#x) is larger than remaining space (%#x)"),
+         _bfd_error_handler (_("corrupt EGSD record: size (%#x) is larger than remaining space (%#x)"),
                              gsd_size, PRIV (recrd.rec_size));
          bfd_set_error (bfd_error_bad_value);
          return FALSE;
 
       if (gsd_size < 4)
        {
-         _bfd_error_handler (_("Corrupt EGSD record: size (%#x) is too small"),
+         _bfd_error_handler (_("corrupt EGSD record: size (%#x) is too small"),
                              gsd_size);
          bfd_set_error (bfd_error_bad_value);
          return FALSE;
                /* PR 21813: Check for an out of range index.  */
                if (psindx < 0 || psindx >= (int) PRIV (section_count))
                  {
-                   _bfd_error_handler (_("Corrupt EGSD record: its psindx field is too big (%#lx)"),
+                   _bfd_error_handler (_("corrupt EGSD record: its psindx field is too big (%#lx)"),
                                        psindx);
                    bfd_set_error (bfd_error_bad_value);
                    return FALSE;
                /* PR 21813: Check for an out of range index.  */
                    if (psindx < 0 || psindx >= (int) PRIV (section_count))
                      {
-                       _bfd_error_handler (_("Corrupt EGSD record: its psindx field is too big (%#lx)"),
+                       _bfd_error_handler (_("corrupt EGSD record: its psindx field is too big (%#lx)"),
                                            psindx);
                        bfd_set_error (bfd_error_bad_value);
                        return FALSE;
                /* PR 21813: Check for an out of range index.  */
                if (psindx < 0 || psindx >= (int) PRIV (section_count))
                  {
-                   _bfd_error_handler (_("Corrupt EGSD record: its psindx field is too big (%#lx)"),
+                   _bfd_error_handler (_("corrupt EGSD record: its psindx field is too big (%#lx)"),
                                        psindx);
                    bfd_set_error (bfd_error_bad_value);
                    return FALSE;
        case EGSD__C_SYMM:
        case EGSD__C_SYMV:
        default:
-         _bfd_error_handler (_("Unknown EGSD subtype %d"), gsd_type);
+         _bfd_error_handler (_("unknown EGSD subtype %d"), gsd_type);
          bfd_set_error (bfd_error_bad_value);
          return FALSE;
        }
   if (PRIV (stackptr) >= STACKSIZE)
     {
       bfd_set_error (bfd_error_bad_value);
-      _bfd_error_handler (_("Stack overflow (%d) in _bfd_vms_push"), PRIV (stackptr));
+      _bfd_error_handler (_("stack overflow (%d) in _bfd_vms_push"), PRIV (stackptr));
       exit (1);
     }
 }
   if (PRIV (stackptr) == 0)
     {
       bfd_set_error (bfd_error_bad_value);
-      _bfd_error_handler (_("Stack underflow in _bfd_vms_pop"));
+      _bfd_error_handler (_("stack underflow in _bfd_vms_pop"));
       exit (1);
     }
   PRIV (stackptr)--;
   len = *ascic;
   if (ascic + len >= max_ascic)
     {
-      _bfd_error_handler (_("Corrupt vms value"));
+      _bfd_error_handler (_("corrupt vms value"));
       *vma = 0;
       *hp = NULL;
       return;
       if (cmd_length < 4 || (ptr + cmd_length > maxptr + 4))
        {
        corrupt_etir:
-         _bfd_error_handler (_("Corrupt ETIR record encountered"));
+         _bfd_error_handler (_("corrupt ETIR record encountered"));
          bfd_set_error (bfd_error_bad_value);
          return FALSE;
        }
   /* PR 21813: Check for an undersized record.  */
   if (PRIV (recrd.buf_size) < sizeof (* eeom))
     {
-      _bfd_error_handler (_("Corrupt EEOM record - size is too small"));
+      _bfd_error_handler (_("corrupt EEOM record - size is too small"));
       bfd_set_error (bfd_error_bad_value);
       return FALSE;
     }
   PRIV (eom_data).eom_w_comcod = bfd_getl16 (eeom->comcod);
   if (PRIV (eom_data).eom_w_comcod > 1)
     {
-      _bfd_error_handler (_("Object module NOT error-free !\n"));
+      _bfd_error_handler (_("object module not error-free !"));
       bfd_set_error (bfd_error_bad_value);
       return FALSE;
     }
 
                  /* Regular relocs are intertwined with binary data.  */
                  if (curr_addr > addr)
-                   _bfd_error_handler (_("Size error in section %pA"),
+                   _bfd_error_handler (_("size error in section %pA"),
                                        section);
                  size = addr - curr_addr;
                  sto_imm (abfd, section, size, curr_data, curr_addr);
                  break;
 
                case ALPHA_R_BSR:
-                 _bfd_error_handler (_("Spurious ALPHA_R_BSR reloc"));
+                 _bfd_error_handler (_("spurious ALPHA_R_BSR reloc"));
                  break;
 
                case ALPHA_R_LDA:
                  break;
 
                default:
-                 _bfd_error_handler (_("Unhandled relocation %s"),
+                 _bfd_error_handler (_("unhandled relocation %s"),
                                      rptr->howto->name);
                  break;
                }
            {
              /* Output rest of section.  */
              if (curr_addr > section->size)
-               _bfd_error_handler (_("Size error in section %pA"), section);
+               _bfd_error_handler (_("size error in section %pA"), section);
              size = section->size - curr_addr;
              sto_imm (abfd, section, size, curr_data, curr_addr);
              curr_data += size;
 
                case DST__K_SET_LINUM_INCR:
                  _bfd_error_handler
-                   (_("DST__K_SET_LINUM_INCR not implemented"));
+                   (_("%s not implemented"), "DST__K_SET_LINUM_INCR");
                  cmd_length = 2;
                  break;
 
                case DST__K_SET_LINUM_INCR_W:
                  _bfd_error_handler
-                   (_("DST__K_SET_LINUM_INCR_W not implemented"));
+                   (_("%s not implemented"), "DST__K_SET_LINUM_INCR_W");
                  cmd_length = 3;
                  break;
 
                case DST__K_RESET_LINUM_INCR:
                  _bfd_error_handler
-                   (_("DST__K_RESET_LINUM_INCR not implemented"));
+                   (_("%s not implemented"), "DST__K_RESET_LINUM_INCR");
                  cmd_length = 1;
                  break;
 
                case DST__K_BEG_STMT_MODE:
                  _bfd_error_handler
-                   (_("DST__K_BEG_STMT_MODE not implemented"));
+                   (_("%s not implemented"), "DST__K_BEG_STMT_MODE");
                  cmd_length = 1;
                  break;
 
                case DST__K_END_STMT_MODE:
                  _bfd_error_handler
-                   (_("DST__K_END_STMT_MODE not implemented"));
+                   (_("%s not implemented"), "DST__K_END_STMT_MODE");
                  cmd_length = 1;
                  break;
 
 
                case DST__K_SET_PC:
                  _bfd_error_handler
-                   (_("DST__K_SET_PC not implemented"));
+                   (_("%s not implemented"), "DST__K_SET_PC");
                  cmd_length = 2;
                  break;
 
                case DST__K_SET_PC_W:
                  _bfd_error_handler
-                   (_("DST__K_SET_PC_W not implemented"));
+                   (_("%s not implemented"), "DST__K_SET_PC_W");
                  cmd_length = 3;
                  break;
 
                case DST__K_SET_PC_L:
                  _bfd_error_handler
-                   (_("DST__K_SET_PC_L not implemented"));
+                   (_("%s not implemented"), "DST__K_SET_PC_L");
                  cmd_length = 5;
                  break;
 
                case DST__K_SET_STMTNUM:
                  _bfd_error_handler
-                   (_("DST__K_SET_STMTNUM not implemented"));
+                   (_("%s not implemented"), "DST__K_SET_STMTNUM");
                  cmd_length = 2;
                  break;
 
                {
                  _bfd_error_handler
                    /* xgettext:c-format */
-                   (_("Unknown reloc %s + %s"), _bfd_vms_etir_name (prev_cmd),
+                   (_("unknown reloc %s + %s"), _bfd_vms_etir_name (prev_cmd),
                     _bfd_vms_etir_name (cmd));
                  return FALSE;
                }
                    {
                      _bfd_error_handler
                        /* xgettext:c-format */
-                       (_("Unknown reloc %s + %s"), _bfd_vms_etir_name (cmd),
+                       (_("unknown reloc %s + %s"), _bfd_vms_etir_name (cmd),
                         _bfd_vms_etir_name (ETIR__C_STA_LW));
                      return FALSE;
                    }
                {
                  _bfd_error_handler
                    /* xgettext:c-format */
-                   (_("Unknown reloc %s + %s"), _bfd_vms_etir_name (cmd),
+                   (_("unknown reloc %s + %s"), _bfd_vms_etir_name (cmd),
                     _bfd_vms_etir_name (ETIR__C_STA_QW));
                  return FALSE;
                }
                  && prev_cmd != ETIR__C_STA_PQ)
                {
                  /* xgettext:c-format */
-                 _bfd_error_handler (_("Unknown reloc %s + %s"),
+                 _bfd_error_handler (_("unknown reloc %s + %s"),
                                      _bfd_vms_etir_name (prev_cmd),
                                      _bfd_vms_etir_name (ETIR__C_STO_LW));
                  return FALSE;
              if (prev_cmd != ETIR__C_OPR_ADD && prev_cmd != ETIR__C_STA_QW)
                {
                  /* xgettext:c-format */
-                 _bfd_error_handler (_("Unknown reloc %s + %s"),
+                 _bfd_error_handler (_("unknown reloc %s + %s"),
                                      _bfd_vms_etir_name (prev_cmd),
                                      _bfd_vms_etir_name (ETIR__C_STO_QW));
                  return FALSE;
              if (prev_cmd != ETIR__C_STA_PQ)
                {
                  /* xgettext:c-format */
-                 _bfd_error_handler (_("Unknown reloc %s + %s"),
+                 _bfd_error_handler (_("unknown reloc %s + %s"),
                                      _bfd_vms_etir_name (prev_cmd),
                                      _bfd_vms_etir_name (ETIR__C_STO_OFF));
                  return FALSE;
              if (prev_cmd != ETIR__C_STA_LW && prev_cmd != ETIR__C_STA_QW)
                {
                  /* xgettext:c-format */
-                 _bfd_error_handler (_("Unknown reloc %s + %s"),
+                 _bfd_error_handler (_("unknown reloc %s + %s"),
                                      _bfd_vms_etir_name (prev_cmd),
                                      _bfd_vms_etir_name (ETIR__C_OPR_ADD));
                  return FALSE;
              continue;
 
            default:
-             _bfd_error_handler (_("Unknown reloc %s"),
+             _bfd_error_handler (_("unknown reloc %s"),
                                  _bfd_vms_etir_name (cmd));
              return FALSE;
            }
            /* Get section to which the relocation applies.  */
            if (cur_psect < 0 || cur_psect > (int)PRIV (section_count))
              {
-               _bfd_error_handler (_("Invalid section index in ETIR"));
+               _bfd_error_handler (_("invalid section index in ETIR"));
                return FALSE;
              }
 
            sec = PRIV (sections)[cur_psect];
            if (sec == bfd_abs_section_ptr)
              {
-               _bfd_error_handler (_("Relocation for non-REL psect"));
+               _bfd_error_handler (_("relocation for non-REL psect"));
                return FALSE;
              }
 
                    }
                if (sym == NULL)
                  {
-                   _bfd_error_handler (_("Unknown symbol in command %s"),
+                   _bfd_error_handler (_("unknown symbol in command %s"),
                                        _bfd_vms_etir_name (cmd));
                    reloc->sym_ptr_ptr = NULL;
                  }
 
+2018-02-26  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-cris/pcrelcp-1.d,
+       * testsuite/ld-mmix/start-2.d: Update.
+
 2018-02-26  Alan Modra  <amodra@gmail.com>
 
        * testsuite/ld-arm/cmse-implib-errors.out,
 
 #as: --no-underscore --em=criself
 #ld: -shared -m crislinux -z nocombreloc
 #ld_after_inputfiles: tmpdir/libdso-1b.so
-#warning: \A[^\n]*\.o, section `.text', to symbol `expfn@@TST2':\n
-#warning: [^\n]*recompile with -fPIC\Z
+#warning: \A[^\n]*\.o, section `.text', to symbol `expfn@@TST2':[^\n]*recompile with -fPIC\Z
 #readelf: -a
 
 # Building a DSO with (unrecommended) non-pic pc-relative references
 
 #source: main1.s
 #source: a.s
 #ld: -m mmo -e a
-#error: Bad symbol definition: `Main' set to
+#error: bad symbol definition: `Main' set to