load elf file
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
use core::panic::PanicInfo;
|
||||
|
||||
#[panic_handler]
|
||||
fn panic(_info: &PanicInfo) -> ! {
|
||||
loop {} // or call your ABI trap, or `abort()`
|
||||
}
|
||||
|
||||
#[unsafe(no_mangle)]
|
||||
fn main() {
|
||||
loop {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user