patchelf icon indicating copy to clipboard operation
patchelf copied to clipboard

patchelf seems to be leaving certain files corrupt

Open kylechase opened this issue 2 years ago • 1 comments

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.

kylechase avatar Jul 04 '23 20:07 kylechase

same in patchelf 0.17.2

> patchelf --set-rpath '$ORIGIN' /XXXX/build/*.so*
patchelf: section header table out of bounds

dcy10000 avatar Jul 06 '23 05:07 dcy10000