Skip to content

Commit f016aa5

Browse files
committed
l4-bender does not yet support dynamic linking
1 parent 066258d commit f016aa5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

compiler/rustc_codegen_ssa/src/back/linker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -994,8 +994,8 @@ impl<'a> Linker for EmLinker<'a> {
994994
self.link_rlib(lib);
995995
}
996996

997-
fn link_rust_dylib(&mut self, lib: Symbol, _path: &Path) {
998-
self.link_dylib(lib, false, true);
997+
fn link_rust_dylib(&mut self, _lib: Symbol, _path: &Path) {
998+
panic!("rust dylibs not supported")
999999
}
10001000

10011001
fn link_rlib(&mut self, lib: &Path) {

compiler/rustc_target/src/spec/x86_64_unknown_l4re_uclibc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ pub fn target() -> Target {
66
base.max_atomic_width = Some(64);
77
base.crt_static_default = true;
88
base.panic_strategy = PanicStrategy::Abort;
9+
base.crt_static_allows_dylibs = false;
10+
base.dynamic_linking = false;
911

1012
Target {
1113
llvm_target: "x86_64-unknown-l4re-uclibc".to_string(),

0 commit comments

Comments
 (0)