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

Remove code setting up "-no-pie" #117

Merged
merged 2 commits into from Jun 14, 2018
Merged

Conversation

yodaldevoid
Copy link
Contributor

These commits remove the code I added so long ago that added "-no-pie" when required. This code caused some problems, mainly with anything using proc macros. rustc now handles this for us, and in a better way so we no longer need this code.

A test is also included and is set to run with a normal call to cargo test. I ran the test both with and without the removed code to be sure that this actually fixed the issue. If you would not like this test to run by default, please let me know and I will modify the test.

I can't say I have ever been so happy to remove all of my code from a codebase before.

Fixes #23

rustc 1.26 now handles passing -no-pie to the linker when
"relocation-model=dynamic-no-pic" is passed. rustc handles it better than we
can, however, as it only passes it to the final binary and we can only force it
for everything, including proc_macro crates, which should be excluded. Leaving
this code in interferes with the fix made in rustc.

Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
This tests that any issues involving proc macros and -no-pie stay resolved.

Signed-off-by: Gabriel Smith <ga29smith@gmail.com>
@xd009642
Copy link
Owner

Just tested it and it's all good my end! You're officially my favourite person of the week, that issue has been a thorn in my side since it was opened ❤️

@xd009642 xd009642 merged commit 93f5619 into xd009642:develop Jun 14, 2018
@yodaldevoid
Copy link
Contributor Author

Glad to be of service! This was definitely a thorn in my side as well. It never feels good when your code only partially works.

@yodaldevoid yodaldevoid deleted the issue_23 branch June 14, 2018 15:28
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.

None yet

2 participants