Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upuse ASLR on Windows #16514
Comments
thestinger
added
A-windows
labels
Aug 15, 2014
thestinger
changed the title
use full ASLR on Windows
use ASLR on Windows
Aug 16, 2014
thestinger
referenced this issue
Aug 18, 2014
Merged
work around MinGW linker bug for ASLR on Windows #16588
thestinger
self-assigned this
Aug 19, 2014
bors
added a commit
that referenced
this issue
Aug 19, 2014
bors
closed this
in
#16588
Aug 19, 2014
mrmonday
added a commit
to mrmonday/rust
that referenced
this issue
Aug 25, 2014
This comment has been minimized.
This comment has been minimized.
postessive
commented
Aug 27, 2014
|
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) |
This comment has been minimized.
This comment has been minimized.
|
@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. |
thestinger
reopened this
Sep 18, 2014
thestinger
referenced this issue
Sep 18, 2014
Merged
stop disabling ASLR in normal Windows builds #17363
bors
added a commit
that referenced
this issue
Sep 19, 2014
bors
added a commit
that referenced
this issue
Sep 19, 2014
bors
added a commit
that referenced
this issue
Sep 19, 2014
bors
closed this
in
#17363
Sep 20, 2014
thestinger
reopened this
Oct 1, 2014
This comment has been minimized.
This comment has been minimized.
|
Needs to be disabled again due to #17684. |
thestinger
removed their assignment
Jan 28, 2015
This comment has been minimized.
This comment has been minimized.
kostix
referenced this issue
Jan 15, 2016
Closed
ASLR not enabled for Git for Windows executables #608
This comment has been minimized.
This comment has been minimized.
|
Triage: not sure if anything has changed here, but I don't think so. |
steveklabnik
added
O-windows-gnu
and removed
O-windows
labels
Mar 4, 2016
This comment has been minimized.
This comment has been minimized.
|
Triage: same as in 2016 |
thestinger commentedAug 15, 2014
This should be as simple as passing
--dynamicbaseto 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-pieswitch is also broken and results in a messed up entry point, but it may not actually be required.