bfd: add translation wrappers to PE image section RVA diagnostics
authorJan Beulich <jbeulich@suse.com>
Mon, 22 Mar 2021 07:23:42 +0000 (08:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 22 Mar 2021 07:23:42 +0000 (08:23 +0100)
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.

bfd/ChangeLog
bfd/peXXigen.c

index bb273426eb36e64ef71139659ae68563c6ee516b..6cdf3acc556a42a651ac798da3ce18eaac300baf 100644 (file)
@@ -1,3 +1,9 @@
+2021-03-22  Jan Beulich  <jbeulich@suse.com>
+
+       * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Add missing
+       language translation wrapping to _bfd_error_handler()
+       invocations.
+
 2021-03-21  Alan Modra  <amodra@gmail.com>
 
        * bfd-in.h (startswith): New inline.
index b3706723c83c8cec600c144b807de17245ecc8bc..14daf4f6e57faac0bb3aa9b764aff0c1956844d9 100644 (file)
@@ -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
This page took 0.028713 seconds and 4 git commands to generate.