Commit d72176e6 authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

pahole: 1.24 -> 1.24-unstable-2022-11-24

We need newer pahole to support `binutils-2.40` which started generating
fresh DWARF tags that pahole-1.24 does not yet understand and fails as:

    $ nix log /nix/store/ckjr3sbsh13y1prigppk2y0jpf0p4icm-linux-6.1.6.drv
    ...
      BTF     .btf.vmlinux.bin.o
      Unsupported DW_TAG_unspecified_type(0x3b)
      Encountered error while encoding BTF.

Upstream thread to add the support for it:
    https://lore.kernel.org/all/YzwkazNc6wNCpQTN@kernel.org/t/
parent 8f947e41
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -2,11 +2,14 @@

stdenv.mkDerivation rec {
  pname = "pahole";
  version = "1.24";
  # Need a revision that supports DW_TAG_unspecified_type(0x3b).
  # Was added after 1.24 release in a series of changes.
  # Can switch back to release tags once 1.25 is cut.
  version = "1.24-unstable-2022-11-24";
  src = fetchgit {
    url = "https://git.kernel.org/pub/scm/devel/pahole/pahole.git";
    rev = "v${version}";
    sha256 = "sha256-OPseVKt5kIKgK096+ufKrWMS1E/7Z0uxNqCMN6wKfKg=";
    rev = "02d67c51765dfbd5893087da63744c864c7cc9e0";
    hash = "sha256-hKc8UKxPtEM2zlYmolSt1pXJKNRt4wC/Uf+dP/Sb7+s=";
  };

  nativeBuildInputs = [ cmake pkg-config ];