We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6fe4467 + 360a29d commit 859407eCopy full SHA for 859407e
src/librustc/back/link.rs
@@ -1028,7 +1028,9 @@ fn link_args(cmd: &mut Command,
1028
1029
// Mark all dynamic libraries and executables as compatible with ASLR
1030
// FIXME #17098: ASLR breaks gdb
1031
- // cmd.arg("-Wl,--dynamicbase");
+ if sess.opts.debuginfo == NoDebugInfo {
1032
+ cmd.arg("-Wl,--dynamicbase");
1033
+ }
1034
1035
// Mark all dynamic libraries and executables as compatible with the larger 4GiB address
1036
// space available to x86 Windows binaries on x86_64.
0 commit comments