Skip to content

Commit

Permalink
Strongly link panic and oom handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Jun 11, 2021
1 parent 7b1932e commit 53dcc07
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/runtime_glue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use core::panic::PanicInfo;

// see https://users.rust-lang.org/t/psa-breaking-change-panic-fmt-language-item-removed-in-favor-of-panic-implementation/17875
#[cfg(target_os = "hermit")]
#[linkage = "weak"]
#[panic_handler]
fn panic(info: &PanicInfo<'_>) -> ! {
print!("[{}][!!!PANIC!!!] ", arch::percore::core_id());
Expand All @@ -40,7 +39,6 @@ fn panic(info: &PanicInfo<'_>) -> ! {
}
}

#[linkage = "weak"]
#[alloc_error_handler]
fn rust_oom(layout: Layout) -> ! {
println!(
Expand Down

0 comments on commit 53dcc07

Please sign in to comment.