overwrite entry point

This commit is contained in:
Ruidy 2021-04-24 17:17:30 +02:00
parent 4cc1eecd56
commit 23e5a4e35a

View file

@ -1,8 +1,14 @@
#![no_std] #![no_std]
#![no_main]
use core::panic::PanicInfo; 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. /// Function called on panic. It is a diverging function with a `never` return type.
/// ///
/// # Arguments /// # Arguments