Private #[no_mangle]
symbols are exported from a cdylib
#98449
Labels
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In C++ (MSVC) un-mangling and exporting are controlled via
extern "C"
and__declspec(dllexport)
respectively.In Rust, however, all
#[no_mangle]
functions are exported from the finalcdylib
.It seems that it is not possible to define an un-mangled and un-exported symbol in Rust.
The text was updated successfully, but these errors were encountered: