-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.
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.
philippkeller, dcoffill, ur0, hannobraun, awelkie and 8 more
Metadata
Metadata
Assignees
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.