rollup merge of #17363 : thestinger/aslr

This commit is contained in:
Alex Crichton 2014-09-19 10:00:41 -07:00
commit 859407e1ef
1 changed files with 3 additions and 1 deletions

View File

@ -1028,7 +1028,9 @@ fn link_args(cmd: &mut Command,
// Mark all dynamic libraries and executables as compatible with ASLR
// FIXME #17098: ASLR breaks gdb
// cmd.arg("-Wl,--dynamicbase");
if sess.opts.debuginfo == NoDebugInfo {
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.