--crate-type=bin causes no_mangle symbols to be ommitted. #123946
Labels
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
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.
I tried this code:
I expected to see this happen: the outputted ELF binary should contain a symbol named "somefunction".
Instead, this happened:
rustc --crate-type=bin rustc-bug.rs && objdump -t rustc-bug | grep somefunction
returned zero results.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: