-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
Using patchelf --add-needed
and --remove-needed
breaks PIE executable
#115
Comments
A colleague on NixOS could not reproduce this. I am using Ubuntu 16.04 LTS and I am also using patchelf on current master version, that is commit hash: Sorry if the bug report is not very helpful, I will gladly provide any information that you deem necessary. |
A probable cause is that |
Some derivations of my custom nixpkgs-overlay broke on the upgrade to 18.03 with a |
I've stumbled upon this and it is still happening. Take a simple "Hello, world!" executable and compile it: |
Maybe try with new release? https://nixos.org/releases/patchelf/patchelf-0.10/ |
I am able to confirm that |
This is probably fixed, but needs a regression test. |
I met the same error while using $ patchelf --version
patchelf 0.11 when edit so
the following error would occur
|
@ericxsun could you attach |
@domenkozar pls see the shared file |
@domenkozar any progress? |
I can reproduce.
Someone could rebase #166 and check if that PR fixes the problem. |
I guess it won't be ok, i.e., will not fix this problem. the problem here, looks like things in |
I currently need
patchelf
to add a dependency to anelf
file (in thejarify
project if it's of any use). It seems to fail, here is a minimal repro.I am building a simple C file compiled with -fPIE/-fpie and calling the following commands
The
Makefile
used here is:The c source file
thread.c
, (simply the wikipedia example of pthread in order to get a dynamic dependency)cc @mboes
The text was updated successfully, but these errors were encountered: