From 1369522f36eece1b37139a81f7f2139ba3915172 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Thu, 4 Aug 2022 17:05:33 -0700 Subject: [PATCH] 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. --- binutils/readelf.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2