-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
use ASLR on Windows #16514
Comments
Hi, I found this issue while looking for an old reference, but I thought you might be interested in a possible fix. We needed This patch has not been reviewed at all, since no one at Tor feels sufficiently capable. Hopefully the binutils folks will have something to say, but as language developers you might too. (edit: fix link to patch) |
@postessive: We ended up working around it for the time being by doing a dllexport of main in order to force it to output a relocation section, since the executable counts as a library. I would really like to have this fixed properly though so I'll look into it some more when I have time. |
Needs to be disabled again due to #17684. |
Triage: not sure if anything has changed here, but I don't think so. |
Triage: same as in 2016 |
This should be as simple as passing
--dynamicbase
to the linker for both libraries and executables. However, the necessary relocations are never generated by MinGW or MinGW-w64 for executables so nothing is actually randomized without also passing--export-all-symbols
. The-pie
switch is also broken and results in a messed up entry point, but it may not actually be required.The text was updated successfully, but these errors were encountered: