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

Set interpreter only when necessary #508

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yuta-hayama
Copy link

If the value to be written with --set-intrepreter has already been set,
the operation can be skipped. Similar checks are already performed by
modifySoname() and can be implemented in setInterpreter().

This may avoid the problem that segfaults occur after multiple calls to
patchelf --set-interpreter mentioned in the link below.
#492 (comment)

It also prevents the addition of unnecessary LOAD segments each time
patchelf --set-interpreter is called.

If the given interpreter is already set, nothing needs to be done.
As with modifySoname(), it skips unnecessary processing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant