From a80b09b1aec22363679684a65d5009c5373a1298 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Fri, 25 Jan 2019 12:37:02 +0100 Subject: [PATCH] Add #![no_main] attribute and Linux entry point --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f02689c1..9ae7cc3d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,12 @@ #![no_std] +#![no_main] use core::panic::PanicInfo; -fn main() {} +#[no_mangle] +pub extern "C" fn _start() -> ! { + loop {} +} /// This function is called on panic. #[panic_handler]