libdwfl: Add ZSTD support.
authorMark Wielaard <mark@klomp.org>
Fri, 18 Sep 2020 10:49:29 +0000 (12:49 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 21 Sep 2020 13:17:00 +0000 (15:17 +0200)
commit52536d7d213846a3122d4dd40f6268f231109990
tree22b4947a69be0e27a58c0d8fa62e60d9511482a2
parent04bcab70c7dcb9c1bc7ca49508b5d7cbd5aeaa1a
libdwfl: Add ZSTD support.

Newer kernels might be compressed using ZSTD add support to libdwfl open
so we can can automatically read ZSTD compressed files and kernel images.

The support is very similar to the bzip2 and lzma support, but slightly
different. With a bit more macros it could maybe have used the gzip.c
USE_INFLATE code path. But I felt that the many macros didn't really help
understand the code. So the unzip routine has a slightly different code
path for ZSTD.

https://sourceware.org/bugzilla/show_bug.cgi?id=26632

Signed-off-by: Mark Wielaard <mark@klomp.org>
15 files changed:
ChangeLog
config/ChangeLog
config/elfutils.spec.in
config/libdw.pc.in
configure.ac
libdwfl/ChangeLog
libdwfl/Makefile.am
libdwfl/gzip.c
libdwfl/libdwflP.h
libdwfl/linux-kernel-modules.c
libdwfl/open.c
libdwfl/zstd.c [new file with mode: 0644]
tests/ChangeLog
tests/Makefile.am
tests/run-readelf-compressed-zstd.sh [new file with mode: 0755]