NixOS / patchelf

A small utility to modify the dynamic linker and RPATH of ELF executables
GNU General Public License v3.0
3.48k stars 483 forks source link

autoPatchelfHook and separateDebugInfo interact poorly #562

Closed kjeremy closed 1 month ago

kjeremy commented 1 month ago

Describe the bug

If both separateDebugInfo = true and autoPatchelfHook are included in a derivation then the hook will try to patch the debug info and fail because it can't find a .hash section.

Steps To Reproduce

Create a derivation with autoPatchelfHook in the nativeBuildInputs and seprateDebugInfo = true. Watch it fail to build.

Expected behavior

It should build.

patchelf --version output

Additional context

Add any other context about the problem here.

kjeremy commented 1 month ago

Filed as https://github.com/NixOS/nixpkgs/issues/329416