]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR 33838 Truncated translation in objcopy.c
authorAlan Modra <amodra@gmail.com>
Mon, 26 Jan 2026 03:53:29 +0000 (14:23 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 26 Jan 2026 05:37:25 +0000 (16:07 +1030)
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 <schwab@linux-m68k.org>

binutils/objcopy.c

index c237f24adf1ddf56399c5cd528ffc67aa134de48..fdd8bd11799618678a778d84e2f089776db19c61 100644 (file)
@@ -708,7 +708,7 @@ copy_usage (FILE *stream, int exit_status)
                                    <commit>\n\
      --subsystem <name>[:<version>]\n\
                                    Set PE subsystem to <name> [& <version>]\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);