Recognize the new ELF compression type for ZSTD.
authorCary Coutant <ccoutant@gmail.com>
Fri, 5 Aug 2022 00:05:33 +0000 (17:05 -0700)
committerCary Coutant <ccoutant@gmail.com>
Fri, 5 Aug 2022 00:08:08 +0000 (17:08 -0700)
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

index de572dd0b7e940470e5b51a9c937ab990b2ee654..ed764591765307cb41841acdf46080ef119e8c0d 100644 (file)
@@ -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);