You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even with the fixes in #82 and #180, it appears that patchelf --set-interpreter still corrupts binaries on MIPS.
The following is on an Octeon. Note that the argument passed to --set-interpeter has enough leading slashes to make it exactly the same length as the interpreter being replaced, so file offsets shifting around isn't the issue here.
I would have expected that only those bytes in the binary would change, but as the diff below shows, patchelf is changing lots of other stuff in the binary. In any case (see end of report) the resulting binary segfaults, whereas the original did not.
Would it be possible to make a 0.14.4 release at or after a992616? Then I can submit a PR to update nixpkgs. I've started working on upstreaming my nixpkgs-on-mips64 stuff.
Even with the fixes in #82 and #180, it appears that
patchelf --set-interpreter
still corrupts binaries on MIPS.The following is on an Octeon. Note that the argument passed to --set-interpeter has enough leading slashes to make it exactly the same length as the interpreter being replaced, so file offsets shifting around isn't the issue here.
I would have expected that only those bytes in the binary would change, but as the diff below shows, patchelf is changing lots of other stuff in the binary. In any case (see end of report) the resulting binary segfaults, whereas the original did not.
Unfortunately the result is corrupt:
even though the original works correctly:
The text was updated successfully, but these errors were encountered: