From 66cfc0fd0d9daadc2dac5a783b69b4050c0b1722 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 26 Sep 2017 11:28:04 +0930 Subject: PR21732, String-concatenated message can not be translated Preprocessor tokens like DWARF_VMA_FMT and BFD_VMA_FMT are not understood by gettext, and cause the translation string to be truncated. Even if it were not truncated, we wouldn't want a value that changes depending on host or configure options to be put in a translation string. PR 21732 * dwarf.c (READ_ULEB): Don't use DWARF_VMA_FMT in translated string. (READ_SLEB): Likewise. * readelf.c (bfd_vmatoa): New function. (get_data, get_dynamic_data): Use it for printing error messages. --- binutils/ChangeLog | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'binutils/ChangeLog') diff --git a/binutils/ChangeLog b/binutils/ChangeLog index f7b8d7076cf..2b50930ee3d 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,11 @@ +2017-09-26 Alan Modra + + PR 21732 + * dwarf.c (READ_ULEB): Don't use DWARF_VMA_FMT in translated string. + (READ_SLEB): Likewise. + * readelf.c (bfd_vmatoa): New function. + (get_data, get_dynamic_data): Use it for printing error messages. + 2017-09-25 H.J. Lu PR binutils/22203 -- cgit v1.2.1