patchelf
patchelf copied to clipboard
patchelf seems to be leaving certain files corrupt
Describe the bug
Patching an chromium binary leaves the file corrupt.
$ patchelf --print-needed chromium
patchelf: section header table out of bounds
$ ldd chromium
ldd: exited with unknown exit code (135)
Steps To Reproduce
Please see attached nix file default.openjdk.nix
Expected behavior
I would expect chromium to work after this final patch. However, it seems to be corrupt
patchelf --version output
patchelf 0.15.0
Additional context
Add any other context about the problem here.
same in patchelf 0.17.2
> patchelf --set-rpath '$ORIGIN' /XXXX/build/*.so*
patchelf: section header table out of bounds