From: Cary Coutant Date: Fri, 5 Aug 2022 00:05:33 +0000 (-0700) Subject: Recognize the new ELF compression type for ZSTD. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1369522f36eece1b37139a81f7f2139ba3915172;p=binutils-gdb.git Recognize the new ELF compression type for ZSTD. There is more work to be done to actually support compression and decompression using the zstd library, but I will leave that to the champions of the new compression option. binutils/ * binutils/readelf.c (process_section_headers): Add support for ELFCOMPRESS_ZSTD. --- diff --git a/binutils/readelf.c b/binutils/readelf.c index de572dd0b7e..ed764591765 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -7710,6 +7710,8 @@ process_section_headers (Filedata * filedata) { if (chdr.ch_type == ELFCOMPRESS_ZLIB) printf (" ZLIB, "); + else if (chdr.ch_type == ELFCOMPRESS_ZSTD) + printf (" ZSTD, "); else printf (_(" [: 0x%x], "), chdr.ch_type);