[PATCH] bfd: add translation wrappers to PE image section RVA diagnostics
Jan Beulich
jbeulich@suse.com
Mon Mar 15 10:09:19 GMT 2021
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/
2021-03-XX Jan Beulich <jbeulich@suse.com>
* peXXigen.c (_bfd_XXi_swap_scnhdr_out): Add missing
language translation wrapping to _bfd_error_handler()
invocations.
--- a/bfd/peXXigen.c
+++ b/bfd/peXXigen.c
@@ -935,10 +935,10 @@ _bfd_XXi_swap_scnhdr_out (bfd * abfd, vo
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
More information about the Binutils
mailing list