aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index f1ea8b0..9b48fd7 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -18,3 +18,10 @@ fn panic_handler(info: &core::panic::PanicInfo) -> ! {
eprintln!("{}", info);
sys::exit(42);
}
+
+// Since we disable the atomic isa extension, the compiler emits calls to software emulation. We
+// provide the stub to make the linker happy for now.
+#[no_mangle]
+pub fn __atomic_load_8() {
+ panic!("__atomic_load_8 not implemented!");
+}