From: ccoutant@gmail.com
To: binutils@sourceware.org
Subject: [patch] Add preliminary readelf support for ELFCOMPRESS_ZSTD.
Date: Tue, 02 Aug 2022 16:31:42 -0700 [thread overview]
Message-ID: <62e9b3df.a70a0220.86dc7.a6a5@mx.google.com> (raw)
This patch adds support to readelf to recognize the new ELF compression
type. 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.
-cary
binutils/
* binutils/readelf.c (process_section_headers): Add support for
ELFCOMPRESS_ZSTD.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 157f8d8f6fb..9216ca8efa3 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -7730,6 +7730,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);
next reply other threads:[~2022-08-02 23:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-02 23:31 ccoutant [this message]
2022-08-03 6:48 ` Jan Beulich
2022-08-05 0:13 ` Cary Coutant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=62e9b3df.a70a0220.86dc7.a6a5@mx.google.com \
--to=ccoutant@gmail.com \
--cc=binutils@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).