Use %A and %B in more error messages
[deliverable/binutils-gdb.git] / bfd / elf32-score.c
index 98170df793eb0a0cd5100ae66618254b70316192..98856e8e009df5f0be3e52f00cc2adfb689b6998 100644 (file)
@@ -2769,7 +2769,6 @@ s3_bfd_score_elf_check_relocs (bfd *abfd,
                                asection *sec,
                                const Elf_Internal_Rela *relocs)
 {
-  const char *name;
   bfd *dynobj;
   Elf_Internal_Shdr *symtab_hdr;
   struct elf_link_hash_entry **sym_hashes;
@@ -2789,8 +2788,6 @@ s3_bfd_score_elf_check_relocs (bfd *abfd,
   sym_hashes = elf_sym_hashes (abfd);
   extsymoff = (elf_bad_symtab (abfd)) ? 0 : symtab_hdr->sh_info;
 
-  name = bfd_get_section_name (abfd, sec);
-
   if (dynobj == NULL)
     {
       sgot = NULL;
@@ -2829,7 +2826,7 @@ s3_bfd_score_elf_check_relocs (bfd *abfd,
         {
          _bfd_error_handler
            /* xgettext:c-format */
-           (_("%s: Malformed reloc detected for section %s"), abfd, name);
+           (_("%B: Malformed reloc detected for section %A"), abfd, sec);
           bfd_set_error (bfd_error_bad_value);
           return FALSE;
         }
This page took 0.02442 seconds and 4 git commands to generate.