-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Explicitly pass -no-pie #44067
Explicitly pass -no-pie #44067
Conversation
Some linkers (e.g. Debian and Arch's) that are configured to make PIEs by default will make dynamically linked executables that don't actually dynamically link to anything. Fix that by explicitly passing -no-pie in those cases. Closes rust-lang#43647
@bors: r+ |
📌 Commit 1d838a2 has been approved by |
I'm 80% sure that #43647 is already fixed - comparing the link args , the one missing link flag before and after #40113 (aside from So I don't see what we're fixing by merging this PR. Even if All of this aside, I think we should postpone this PR so we can fix #44069 first. |
@aidanhs do you think, though, that we shouldn't land this? |
@alexcrichton that is correct. I think we should defer to the system linker and leave |
I'm going to test #43647 with the nightly tonight, I'll close if it seems fixed. |
I'm happy as long as binaries that don't link to glibc or anything else dynamically don't depend on a dynamic loader. |
Ok, if @aidanhs's tests come back green sounds like we can close! |
Closing per #43647 (comment) |
Some linkers (e.g. Debian and Arch's) that are configured to make PIEs
by default will make dynamically linked executables that don't actually
dynamically link to anything. Fix that by explicitly passing -no-pie in
those cases.
Closes #43647
r? @alexcrichton