Closed
Description
Since a few nightlies, the compiler requires a rust_begin_unwind
symbol again even though my no_std
crate uses panic=abort
:
In function `core::panicking::panic_fmt::hb1bd46c16a8d9cdb':
core.cgu-0.rs:(.text._ZN4core9panicking9panic_fmt17hb1bd46c16a8d9cdbE+0x38): undefined reference to `rust_begin_unwind'
The big problem is that defining a rust_begin_unwind
function in Rust gives an error, too:
error: symbol `rust_begin_unwind` is already defined
I only works if I add a rust_begin_unwind
function to a C file that is linked with the Rust crate.