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
`patchelf` previously would incorrectly patch the ELF header if it was
called with multiple changes at once such as _add_ & _replace_.
In order to support that, rewrite the sections in between each section
modification.
FixNixOS#359
Describe the bug
I cannot
--add-needed
and--replace-needed
on the same invocation.It produces a binary with incorrect
DT_NEEDED
andgnu.version_r
sections.Steps To Reproduce
Please see that there are multiple copies of
libcrypt.so.1
andlibdl.so.2
, the last one is not even a full path.The
.gnu.version_r
also looks incorrect. It is nowx86_64-linux-gnu/libdl.so.2
instead ofglibc
.Expected behavior
I expect the
--print-needed
to reflect what was passed in.patchelf --version
outputAdditional context
I discovered this also when trying to do the same in patchelf itself via #357
The text was updated successfully, but these errors were encountered: