@@ -4,14 +4,10 @@ use crate::spec::{Cc, DebuginfoKind, LinkerFlavor, Lld, SplitDebuginfo, TargetOp
4
4
5
5
pub ( crate ) fn opts ( ) -> TargetOptions {
6
6
let mut pre_link_args = TargetOptions :: link_args ( LinkerFlavor :: Gnu ( Cc :: No , Lld :: No ) , & [
7
- // FIXME: Disable ASLR for now to fix relocation error
8
7
"--disable-dynamicbase" ,
9
8
"--enable-auto-image-base" ,
10
9
] ) ;
11
10
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" ,
15
11
"-Wl,--disable-dynamicbase" ,
16
12
"-Wl,--enable-auto-image-base" ,
17
13
] ) ;
@@ -42,9 +38,7 @@ pub(crate) fn opts() -> TargetOptions {
42
38
emit_debug_gdb_scripts : false ,
43
39
requires_uwtable : true ,
44
40
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 ,
48
42
supported_split_debuginfo : Cow :: Borrowed ( & [ SplitDebuginfo :: Off ] ) ,
49
43
..Default :: default ( )
50
44
}
0 commit comments