1
Fork 0

work around yet another MinGW-w64 ASLR bug

This commit is contained in:
Daniel Micay 2014-10-01 09:38:42 -04:00
parent f56c1c91f3
commit 6bb648fadc

View file

@ -1025,10 +1025,10 @@ fn link_args(cmd: &mut Command,
cmd.arg("-Wl,--nxcompat"); cmd.arg("-Wl,--nxcompat");
// Mark all dynamic libraries and executables as compatible with ASLR // Mark all dynamic libraries and executables as compatible with ASLR
// FIXME #17098: ASLR breaks gdb // FIXME #16514: ASLR is disabled on Windows due to MinGW-w64 bugs:
if sess.opts.debuginfo == NoDebugInfo { // FIXME #17098: ASLR breaks gdb on Windows
cmd.arg("-Wl,--dynamicbase"); // FIXME #17684: ASLR breaks thread-local storage on Windows
} //cmd.arg("-Wl,--dynamicbase");
// Mark all dynamic libraries and executables as compatible with the larger 4GiB address // Mark all dynamic libraries and executables as compatible with the larger 4GiB address
// space available to x86 Windows binaries on x86_64. // space available to x86 Windows binaries on x86_64.