public inbox for binutils-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Recognize the new ELF compression type for ZSTD.
@ 2022-08-05 0:08 Cary Coutant
0 siblings, 0 replies; only message in thread
From: Cary Coutant @ 2022-08-05 0:08 UTC (permalink / raw)
To: bfd-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1369522f36eece1b37139a81f7f2139ba3915172
commit 1369522f36eece1b37139a81f7f2139ba3915172
Author: Cary Coutant <ccoutant@gmail.com>
Date: Thu Aug 4 17:05:33 2022 -0700
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:
---
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 (_(" [<unknown>: 0x%x], "),
chdr.ch_type);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-05 0:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-05 0:08 [binutils-gdb] Recognize the new ELF compression type for ZSTD Cary Coutant
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).