Closed
Description
When using the new panic_implementation
attribute I get a linker error:
= note: lld: error: undefined symbol: rust_begin_unwind
>>> referenced by core8-82115649ca0ebad190f7336e649e4ba4.rs
>>> core-4aa79020766f2e95.core8-82115649ca0ebad190f7336e649e4ba4.rs.rcgu.o:(core::panicking::panic_fmt::h73e9bd85b453f13d) in archive /…/target/sysroot/lib/rustlib/x86_64-blog_os/lib/libcore-4aa79020766f2e95.rlib
(I'm linking with LLD)
Adding the #[no_mangle]
attribute seems to fix this linker error.
Is no_mangle
required for the panic function or is this a bug?
Metadata
Metadata
Assignees
Labels
No labels