summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2022-08-04 17:05:33 -0700
committerCary Coutant <ccoutant@gmail.com>2022-08-04 17:08:08 -0700
commit1369522f36eece1b37139a81f7f2139ba3915172 (patch)
tree0a23ff229c349e9477e0763c1f6a41bd520447d1
parent62b73b6580f45c4c389263494014687b5c8ed873 (diff)
downloadbinutils-gdb-1369522f36eece1b37139a81f7f2139ba3915172.tar.gz
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.
-rw-r--r--binutils/readelf.c2
1 files changed, 2 insertions, 0 deletions
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 (_(" [<unknown>: 0x%x], "),
chdr.ch_type);