Skip to content

Commit

Permalink
Rollup merge of #132950 - knickish:m68k_gnu_ld, r=workingjubilee
Browse files Browse the repository at this point in the history
Use GNU ld on m68k-unknown-linux-gnu

LLD does not really support the M68k architecture yet, specify `m68k-linux-gnu-ld` as the linker for the platform
  • Loading branch information
matthiaskrgr authored Nov 12, 2024
2 parents 978f592 + d3768ea commit f7e4068
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions compiler/rustc_target/src/spec/targets/m68k_unknown_linux_gnu.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::abi::Endian;
use crate::spec::{Target, TargetOptions, base};
use crate::spec::{LinkSelfContainedDefault, Target, TargetOptions, base};

pub(crate) fn target() -> Target {
let mut base = base::linux_gnu::opts();
Expand All @@ -17,6 +17,13 @@ pub(crate) fn target() -> Target {
pointer_width: 32,
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(),
arch: "m68k".into(),
options: TargetOptions { endian: Endian::Big, mcount: "_mcount".into(), ..base },
options: TargetOptions {
endian: Endian::Big,
mcount: "_mcount".into(),

// LLD currently does not have support for M68k
link_self_contained: LinkSelfContainedDefault::False,
..base
},
}
}

0 comments on commit f7e4068

Please sign in to comment.