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

Do nothing if interpreter has not changed #512

Closed
wants to merge 1 commit into from

Conversation

JPEWdev
Copy link

@JPEWdev JPEWdev commented Jul 31, 2023

If there is not change to the interpreter, don't make any modifications to the file. This is more efficient than requiring programs to check before changing, and also prevents thrashing of the ELF file, since changing the interpreter repeatedly will keep growing the ELF file each time, even if it's the same value.

This is particularly helpful where the same binary is symlinked or hardlinked with multiple names and has patchelf run on it.

Thank you!

Please do your best to include a regression test
so that the quality of future releases can be preserved.

If there is not change to the interpreter, don't make any modifications
to the file. This is more efficient than requiring programs to check
before changing, and also prevents thrashing of the ELF file, since
changing the interpreter repeatedly will keep growing the ELF file each
time, even if it's the same value.

This is particularly helpful where the same binary is symlinked or
hardlinked with multiple names and has patchelf run on it.
@shr-project
Copy link

Duplicates #508

@JPEWdev
Copy link
Author

JPEWdev commented Jul 31, 2023

So it does

@JPEWdev JPEWdev closed this Jul 31, 2023
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.

2 participants