]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
objcopy: Don't add zstd to the debug compression options if not available
authorPietro Monteiro <pietro@sociotechnical.xyz>
Mon, 20 Oct 2025 00:14:51 +0000 (20:14 -0400)
committerAlan Modra <amodra@gmail.com>
Wed, 22 Oct 2025 03:19:05 +0000 (13:49 +1030)
commit4cfcc5412cc2dd1ebe31ca467f2afe4752d45952
tree5d83a0858d53926debfd9de46bb8f83103ea79e0
parent17d36c261915d74229a837b3aa11f11f981a89ea
objcopy: Don't add zstd to the debug compression options if not available

If zstd is not available or was intentionally disabled by the user
don't add it to the list of the available options to compress debug
sections when showing usage.

binutils/
* objcopy.c (copy_usage): Only output
--compress-debug-sections=zstd if HAVE_ZSTD.
binutils/objcopy.c