Commit cc9c91d 1 parent c86b152 commit cc9c91d Copy full SHA for cc9c91d
File tree 1 file changed +6
-0
lines changed
src/librustc_codegen_ssa/back
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1037,6 +1037,12 @@ impl<'a> Linker for WasmLd<'a> {
1037
1037
// indicative of bugs, let's prevent them.
1038
1038
self . cmd . arg ( "--fatal-warnings" ) ;
1039
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
+
1040
1046
// LLD only implements C++-like demangling, which doesn't match our own
1041
1047
// mangling scheme. Tell LLD to not demangle anything and leave it up to
1042
1048
// us to demangle these symbols later.
You can’t perform that action at this time.
0 commit comments