@@ -4,14 +4,10 @@ use crate::spec::{Cc, DebuginfoKind, LinkerFlavor, Lld, SplitDebuginfo, TargetOp
44
55pub ( crate ) fn opts ( ) -> TargetOptions {
66 let mut pre_link_args = TargetOptions :: link_args ( LinkerFlavor :: Gnu ( Cc :: No , Lld :: No ) , & [
7- // FIXME: Disable ASLR for now to fix relocation error
87 "--disable-dynamicbase" ,
98 "--enable-auto-image-base" ,
109 ] ) ;
1110 crate :: spec:: add_link_args ( & mut pre_link_args, LinkerFlavor :: Gnu ( Cc :: Yes , Lld :: No ) , & [
12- // Tell GCC to avoid linker plugins, because we are not bundling
13- // them with Windows installer, and Rust does its own LTO anyways.
14- "-fno-use-linker-plugin" ,
1511 "-Wl,--disable-dynamicbase" ,
1612 "-Wl,--enable-auto-image-base" ,
1713 ] ) ;
@@ -42,9 +38,7 @@ pub(crate) fn opts() -> TargetOptions {
4238 emit_debug_gdb_scripts : false ,
4339 requires_uwtable : true ,
4440 eh_frame_header : false ,
45- // FIXME(davidtwco): Support Split DWARF on Cygwin - may require LLVM changes to
46- // output DWO, despite using DWARF, doesn't use ELF..
47- debuginfo_kind : DebuginfoKind :: Pdb ,
41+ debuginfo_kind : DebuginfoKind :: Dwarf ,
4842 supported_split_debuginfo : Cow :: Borrowed ( & [ SplitDebuginfo :: Off ] ) ,
4943 ..Default :: default ( )
5044 }
0 commit comments