Skip to content

Commit

Permalink
Recognize the new ELF compression type for ZSTD.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ccoutant committed Aug 5, 2022
1 parent 62b73b6 commit 1369522
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions binutils/readelf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1369522

Please sign in to comment.