Skip to content

Commit d3768ea

Browse files
committed
use gnu ld for m68k target
1 parent 583b25d commit d3768ea

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

‎compiler/rustc_target/src/spec/targets/m68k_unknown_linux_gnu.rs‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
usecrate::abi::Endian;
2-
usecrate::spec::{Target,TargetOptions, base};
2+
usecrate::spec::{LinkSelfContainedDefault,Target,TargetOptions, base};
33

44
pub(crate)fntarget() -> Target{
55
letmut base = base::linux_gnu::opts();
@@ -17,6 +17,13 @@ pub(crate) fn target() -> Target {
1717
pointer_width:32,
1818
data_layout:"E-m:e-p:32:16:32-i8:8:8-i16:16:16-i32:16:32-n8:16:32-a:0:16-S16".into(),
1919
arch:"m68k".into(),
20-
options:TargetOptions{endian:Endian::Big,mcount:"_mcount".into(), ..base },
20+
options:TargetOptions{
21+
endian:Endian::Big,
22+
mcount:"_mcount".into(),
23+
24+
// LLD currently does not have support for M68k
25+
link_self_contained:LinkSelfContainedDefault::False,
26+
..base
27+
},
2128
}
2229
}

0 commit comments

Comments
 (0)