libdwarf: Enable dumping of zstd compressed sections
Otherwise it cannot dump objects created by our linux stdenv:
$ echo 'int main() {}' > test.c
$ cc -c -g test.c
$ ./result-bin/bin/dwarfdump test.o
./result-bin/bin/dwarfdump ERROR: ERROR: Failure reading CU header or DIE, corrupt DWARF: DW_DLE_ZDEBUG_REQUIRES_ZLIB: zlib and zstd are missing, cannot decompress section.. Attempting to continue.
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
{ callPackage, zlib }:
|
||||
{ callPackage
|
||||
, zlib
|
||||
, zstd
|
||||
}:
|
||||
|
||||
callPackage ./common.nix rec {
|
||||
version = "0.9.0";
|
||||
url = "https://www.prevanders.net/libdwarf-${version}.tar.xz";
|
||||
hash = "sha512-KC2Q38nacE62SkuhFB8q5mD+6xS78acjdzhmmOMSSSi0SmkU2OiOYUGrCINc5yOtCQqFOtV9vLQ527pXJV+1iQ==";
|
||||
buildInputs = [ zlib ];
|
||||
buildInputs = [ zlib zstd ];
|
||||
knownVulnerabilities = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user