diff --git a/src/main.rs b/src/main.rs index d774d11..6a525d9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,14 @@ #![no_std] - +#![no_main] use core::panic::PanicInfo; -fn main() {} +/// Disabling mangling ensures the compiler returns a function named `_start` +/// +/// We tell the compiler to use `C calling convention` +#[no_mangle] +pub extern "C" fn _start() -> ! { + loop {} +} /// Function called on panic. It is a diverging function with a `never` return type. /// /// # Arguments