I tried:
#[no_mangle]
pub fn exported() {}
building with:
rustc -Zexport-executable-symbols --crate-type bin
I expected to see this happen:
`exported` is in the list of dynamic symbols
Instead, this happened:
in addition, this test case here:
|
nm $(TMPDIR)/main | $(CGREP) exported_symbol |
is insufficient, as nm prints out every symbol, not only the exported ones.
Meta
Tested on:
rustc 1.65.0-nightly (c07a8b4e0 2022-08-26)
rustc 1.65.0-nightly (c2804e6ec 2022-09-07)
I tried:
building with:
rustc -Zexport-executable-symbols --crate-type binI expected to see this happen:
Instead, this happened:
in addition, this test case here:
rust/src/test/run-make/export-executable-symbols/Makefile
Line 10 in 98f3001
is insufficient, as
nmprints out every symbol, not only the exported ones.Meta
Tested on:
rustc 1.65.0-nightly (c07a8b4e0 2022-08-26)rustc 1.65.0-nightly (c2804e6ec 2022-09-07)