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.
1 parent 9508faa commit 360a29dCopy full SHA for 360a29d
src/librustc/back/link.rs
@@ -1024,7 +1024,9 @@ fn link_args(cmd: &mut Command,
1024
1025
// Mark all dynamic libraries and executables as compatible with ASLR
1026
// FIXME #17098: ASLR breaks gdb
1027
- // cmd.arg("-Wl,--dynamicbase");
+ if sess.opts.debuginfo == NoDebugInfo {
1028
+ cmd.arg("-Wl,--dynamicbase");
1029
+ }
1030
1031
// Mark all dynamic libraries and executables as compatible with the larger 4GiB address
1032
// space available to x86 Windows binaries on x86_64.
0 commit comments