* [binutils-gdb] Fix "Untranslated plural in readelf.c"
@ 2024-07-26 15:42 Nick Clifton
0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2024-07-26 15:42 UTC (permalink / raw)
To: binutils-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ad43ae7635a389f692f51a9b05287f5a71129595
commit ad43ae7635a389f692f51a9b05287f5a71129595
Author: Nick Clifton <nickc@redhat.com>
Date: Fri Jul 26 16:42:03 2024 +0100
Fix "Untranslated plural in readelf.c"
PR 32002
Diff:
---
binutils/readelf.c | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 5d1cf9c3388..0f8dc1b9716 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -9428,15 +9428,16 @@ display_relocations (Elf_Internal_Shdr * section,
misleading, since this is not the number of locations relocated, but
the number of words in the compressed RELR format. So also provide
the number of locations affected. */
- if (num_rela == 1)
- /* This is unlikely, but possible. */
- printf (_(" at offset %#" PRIx64
- " contains 1 entry which relocates 1 location:\n"),
- rel_offset);
- else
- printf (_(" at offset %#" PRIx64 " contains %" PRIu64
- " entries which relocate %" PRIu64 " locations:\n"),
- rel_offset, num_rela, count_relr_relocations (filedata, section));
+
+ uint64_t num_reloc = count_relr_relocations (filedata, section);
+
+ printf (_(" at offset %#" PRIx64), rel_offset);
+ printf (ngettext (" contains %" PRIu64 " entry which relocates",
+ " contains %" PRIu64 " entries which relocate",
+ num_rela), num_rela);
+ printf (ngettext (" %" PRIu64 " location:\n",
+ " %" PRIu64 " locations:\n",
+ num_reloc), num_reloc);
}
else
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-07-26 15:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-26 15:42 [binutils-gdb] Fix "Untranslated plural in readelf.c" Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).