-
-
Notifications
You must be signed in to change notification settings - Fork 490
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 --remove-rpath leaves the rpath string the file #453
Comments
Temporary workaround is |
Just now it only removes the dyn section: Line 1400 in 5908e16
XXX
|
Isn't modifying the old value potentially dangerous? Is there anything that says multiple dyn entries can't refer to the same string in the table (or even the suffix of an existing string)? |
Yikes. That is probably the case. |
Yes, you are right. I forgot about this optimization... |
Isn't this a problem for Right now Lines 1566 to 1570 in e37f892
|
I think it is. I am surprised it never got filed as an issue... |
Perhaps #162 is such an issue. |
Wow that looks highly likely to be the case. |
Describe the bug
After running
patchelf --remove-rpath
on a shared library,readelf -a | grep $OLD_RPATH
will show no matches. However the string has been left behind in the binary.Steps To Reproduce
Please include exact steps with an attached binary so that
another person can reproduce the problem.
Expected behavior
No output from the second command. Nix's reference scanner depends on this.
patchelf --version
outputlibgcc_s.so.1.gz
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: