Skip to content

Commit

Permalink
libdwarf: Enable dumping of zstd compressed sections
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
raphaelr committed Dec 26, 2023
1 parent 9ce7ca3 commit a9c78d1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkgs/development/libraries/libdwarf/default.nix
Original file line number Diff line number Diff line change
@@ -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 = [];
}

0 comments on commit a9c78d1

Please sign in to comment.