[binutils-gdb/binutils-2_46-branch] Re: PR 33840 typo in elfnn-loongarch.c
Alan Modra
amodra@sourceware.org
Tue Jan 27 23:55:08 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b3e2bb23257a396723ed61fb8bde10c573b4d507
commit b3e2bb23257a396723ed61fb8bde10c573b4d507
Author: Alan Modra <amodra@gmail.com>
Date: Wed Jan 28 09:48:41 2026 +1030
Re: PR 33840 typo in elfnn-loongarch.c
The second string with the typo was unused (and had unescaped %).
Remove it.
(cherry picked from commit 6f8d261d200b59f0cc55581ad6cefe3912a05fa9)
Diff:
---
bfd/elfnn-loongarch.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/bfd/elfnn-loongarch.c b/bfd/elfnn-loongarch.c
index 46750b152ba..2c67cccd9fb 100644
--- a/bfd/elfnn-loongarch.c
+++ b/bfd/elfnn-loongarch.c
@@ -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,
More information about the Binutils-cvs
mailing list