Skip to content

Commit f2617ae

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

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

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

+9-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,18 @@ pub(crate) fn target() -> Target {
1212
description: Some("Motorola 680x0 Linux".into()),
1313
tier: Some(3),
1414
host_tools: Some(false),
15-
std: None, // ?
15+
std: Some(false), // std cannot be linked for now
1616
},
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+
linker: Some("m68k-linux-gnu-ld".into()),
26+
..base
27+
},
2128
}
2229
}

0 commit comments

Comments
 (0)