summaryrefslogtreecommitdiff
path: root/bfd/peXXigen.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2021-03-22 08:23:42 +0100
committerJan Beulich <jbeulich@suse.com>2021-03-22 08:23:42 +0100
commit2aaf2ce843e4078b158cdfb61435217621ba1803 (patch)
treef10e0c28702a0c8a55a75eab7ad1c5bf1accf4e4 /bfd/peXXigen.c
parent1808ba4b9a7e04e586964e250f0b843bc446b32c (diff)
downloadbinutils-gdb-2aaf2ce843e4078b158cdfb61435217621ba1803.tar.gz
bfd: add translation wrappers to PE image section RVA diagnostics
In commit 87fa7d568ddd ("bfd: don't silently wrap or truncate PE image section RVAs") I forgot about the need to wrap string literals for translation.
Diffstat (limited to 'bfd/peXXigen.c')
-rw-r--r--bfd/peXXigen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c
index b3706723c83..14daf4f6e57 100644
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
@@ -935,10 +935,10 @@ _bfd_XXi_swap_scnhdr_out (bfd * abfd, void * in, void * out)
ss = scnhdr_int->s_vaddr - pe_data (abfd)->pe_opthdr.ImageBase;
if (scnhdr_int->s_vaddr < pe_data (abfd)->pe_opthdr.ImageBase)
- _bfd_error_handler ("%pB:%.8s: section below image base",
+ _bfd_error_handler (_("%pB:%.8s: section below image base"),
abfd, scnhdr_int->s_name);
else if(ss != (ss & 0xffffffff))
- _bfd_error_handler ("%pB:%.8s: RVA truncated", abfd, scnhdr_int->s_name);
+ _bfd_error_handler (_("%pB:%.8s: RVA truncated"), abfd, scnhdr_int->s_name);
PUT_SCNHDR_VADDR (abfd, ss & 0xffffffff, scnhdr_ext->s_vaddr);
/* NT wants the size data to be rounded up to the next