public inbox for binutils-cvs@sourceware.org
help / color / mirror / Atom feed
From: Cary Coutant <ccoutant@sourceware.org>
To: bfd-cvs@sourceware.org
Subject: [binutils-gdb] Recognize the new ELF compression type for ZSTD.
Date: Fri,  5 Aug 2022 00:08:14 +0000 (GMT)	[thread overview]
Message-ID: <20220805000814.1E8A63858407@sourceware.org> (raw)

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);


                 reply	other threads:[~2022-08-05  0:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20220805000814.1E8A63858407@sourceware.org \
    --to=ccoutant@sourceware.org \
    --cc=bfd-cvs@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).