diff --git a/src/librustc_codegen_llvm/back/linker.rs b/src/librustc_codegen_llvm/back/linker.rs index e0a30ef5dbc9a..ef98fae9cc7ee 100644 --- a/src/librustc_codegen_llvm/back/linker.rs +++ b/src/librustc_codegen_llvm/back/linker.rs @@ -1079,6 +1079,9 @@ impl<'a> Linker for WasmLd<'a> { // For now we just never have an entry symbol self.cmd.arg("--no-entry"); + // Make the default table accessible + self.cmd.arg("--export-table"); + let mut cmd = Command::new(""); ::std::mem::swap(&mut cmd, &mut self.cmd); cmd