]> git.lizzy.rs Git - rust.git/commitdiff
work around yet another MinGW-w64 ASLR bug
authorDaniel Micay <danielmicay@gmail.com>
Wed, 1 Oct 2014 13:38:42 +0000 (09:38 -0400)
committerDaniel Micay <danielmicay@gmail.com>
Sun, 5 Oct 2014 23:02:36 +0000 (19:02 -0400)
src/librustc/back/link.rs

index 0708fdc6eba1e932abaaeaa05f89699ff77f50de..1cc60fcdb5ef3a88ea067e54895ee70d69d17cf6 100644 (file)
@@ -1025,10 +1025,10 @@ fn link_args(cmd: &mut Command,
         cmd.arg("-Wl,--nxcompat");
 
         // Mark all dynamic libraries and executables as compatible with ASLR
-        // FIXME #17098: ASLR breaks gdb
-        if sess.opts.debuginfo == NoDebugInfo {
-            cmd.arg("-Wl,--dynamicbase");
-        }
+        // FIXME #16514: ASLR is disabled on Windows due to MinGW-w64 bugs:
+        // FIXME #17098: ASLR breaks gdb on Windows
+        // 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
         // space available to x86 Windows binaries on x86_64.