We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--export-dynamic
1 parent c86b152 commit cc9c91dCopy full SHA for cc9c91d
src/librustc_codegen_ssa/back/linker.rs
@@ -1037,6 +1037,12 @@ impl<'a> Linker for WasmLd<'a> {
1037
// indicative of bugs, let's prevent them.
1038
self.cmd.arg("--fatal-warnings");
1039
1040
+ // The symbol visibility story is a bit in flux right now with LLD.
1041
+ // It's... not entirely clear to me what's going on, but this looks to
1042
+ // make everything work when `export_symbols` isn't otherwise called for
1043
+ // things like executables.
1044
+ self.cmd.arg("--export-dynamic");
1045
+
1046
// LLD only implements C++-like demangling, which doesn't match our own
1047
// mangling scheme. Tell LLD to not demangle anything and leave it up to
1048
// us to demangle these symbols later.
0 commit comments