From: Alan Modra Date: Mon, 26 Jan 2026 03:53:29 +0000 (+1030) Subject: PR 33838 Truncated translation in objcopy.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c8cfb3d217aee87562c4f4c4dbc1e4d60e8eadb;p=thirdparty%2Fbinutils-gdb.git PR 33838 Truncated translation in objcopy.c The only macros allowed are the ones specially handled by gettext, such as PRId64. * objcopy.c (copy_usage): Don't use string literal concatenation of macros in translated strings. Patch from Andreas Schwab --- diff --git a/binutils/objcopy.c b/binutils/objcopy.c index c237f24adf1..fdd8bd11799 100644 --- a/binutils/objcopy.c +++ b/binutils/objcopy.c @@ -708,7 +708,7 @@ copy_usage (FILE *stream, int exit_status) \n\ --subsystem [:]\n\ Set PE subsystem to [& ]\n\ - --compress-debug-sections[={none|zlib|zlib-gnu|zlib-gabi" ZSTD_OPT "}]\n\ + --compress-debug-sections[={none|zlib|zlib-gnu|zlib-gabi%s}]\n\ Compress DWARF debug sections\n\ --decompress-debug-sections Decompress DWARF debug sections using zlib\n\ --elf-stt-common=[yes|no] Generate ELF common symbols with STT_COMMON\n\ @@ -721,7 +721,7 @@ copy_usage (FILE *stream, int exit_status) -V --version Display this program's version number\n\ -h --help Display this output\n\ --info List object formats & architectures supported\n\ -")); +"), ZSTD_OPT); list_supported_targets (program_name, stream); if (REPORT_BUGS_TO[0] && exit_status == 0) fprintf (stream, _("Report bugs to %s\n"), REPORT_BUGS_TO);