Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patchelf: update to v0.18.0 #31107

Closed
wants to merge 1 commit into from
Closed

Conversation

rcoup
Copy link
Contributor

@rcoup rcoup commented Apr 25, 2023

Update the patchelf tool from v0.14.2 to v0.18.0.


In particular, this fixes ELF corruption on x64-linux-dynamic with RPATH rewriting, which manifests itself as odd segfaults on initial binary execution, or library dependencies being messed up (eg. the binary depends on libfoo.1.2.3 (& objdump/ldd/readelf displaying as such) but the runtime linker tries to load a truncated libf). eu-elflint reports errors like section [ 6] '.dynstr' not fully contained in segment of program header entry 2

The issues don't seem to affect all architectures and distributions evenly — eg. Fedora is much more likely to encounter runtime errors than Debian (with the same binary), as are amd64 binaries cf arm64: maybe there's some differing glibc behaviours/options at play? Presumably may depend on build path lengths and other fun variables too.

Relevant upstream issues:

@Osyotr
Copy link
Contributor

Osyotr commented Apr 25, 2023

There seem to be an issue in latest release of patchelf, better wait for the fix.
NixOS/patchelf#492

@LilyWangLL LilyWangLL self-assigned this Apr 26, 2023
@LilyWangLL LilyWangLL added category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly depends:upstream-changes Waiting on a change to the upstream project labels Apr 26, 2023
@LilyWangLL
Copy link
Contributor

Note: I will be converting your PR to draft status. When you respond, please revert to "ready for review". That way, I can be aware that you've responded since you can't modify the tags.

@LilyWangLL LilyWangLL marked this pull request as draft May 8, 2023 05:55
@BillyONeal
Copy link
Member

Closing this as upstream appears unresponsive and there hasn't been activity in more than 4 months. Please feel free to reopen or open a new PR if this becomes unblocked and/or you're interested in continuing. Thanks!

@BillyONeal BillyONeal closed this Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:tool-update The issue is with build tool or build script, which requires update or should be executed correctly depends:upstream-changes Waiting on a change to the upstream project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants