diff --git a/src/panic.rs b/src/panic.rs
index 6e915e6dc816647962939ab1822b7f9c77074eb4..7c3ead336eb239a0a48de2b2b0b919a496e0f380 100644
--- a/src/panic.rs
+++ b/src/panic.rs
@@ -23,6 +23,7 @@ pub extern "C" fn rust_begin_unwind(fmt: ::core::fmt::Arguments, file: &str, lin
 }
 
 #[lang = "oom"]
+#[no_mangle]
 pub extern fn rust_oom() -> ! {
     panic!("kernel memory allocation failed");
 }