Commit a9c78d1d authored by Raphael Robatsch's avatar Raphael Robatsch
Browse files

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.
parent 9ce7ca30
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
{ 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 = [];
}