]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Re: PR 33840 typo in elfnn-loongarch.c
authorAlan Modra <amodra@gmail.com>
Tue, 27 Jan 2026 23:18:41 +0000 (09:48 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 27 Jan 2026 23:20:44 +0000 (09:50 +1030)
The second string with the typo was unused (and had unescaped %).
Remove it.

bfd/elfnn-loongarch.c

index 46750b152baabc52d9a6931cb5ab1656ae7411f2..2c67cccd9fb09af2060fcad8321fad33972c42ac 100644 (file)
@@ -3481,11 +3481,7 @@ loongarch_resolve_pcrel_lo_relocs (loongarch_pcrel_relocs *p)
       loongarch_pcrel_hi_reloc search = {r->address, 0, 0, NULL};
       loongarch_pcrel_hi_reloc *entry = htab_find (p->hi_relocs, &search);
 
-      char *string = NULL;
       if (entry == NULL)
-       string = _("%pcrel_lo missing matching %pcrel_hi");
-
-      if (string != NULL)
        {
          ((*r->info->callbacks->reloc_overflow)
           (r->info, NULL, NULL, r->howto->name, (bfd_vma) 0,