about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-01-24 18:25:48 +0100
committerGitHub <noreply@github.com>2019-01-24 18:25:48 +0100
commit5b288ae0eb26f5d17edd6ca4a2d0c5f28be81674 (patch)
tree3d197ac8d73ea3cc23c0cbf4511457e376e2fbdc /src
parent3025949afaa8cf84f1c52ba66401aa4a851f5224 (diff)
parent0db2587a1c0f6492d595cd86b036789161adab31 (diff)
downloadrust-5b288ae0eb26f5d17edd6ca4a2d0c5f28be81674.tar.gz
rust-5b288ae0eb26f5d17edd6ca4a2d0c5f28be81674.zip
Rollup merge of #57861 - pepyakin:wasm-dont-export-table, r=alexcrichton
Don't export table by default in wasm

Revert of https://github.com/rust-lang/rust/pull/53237
As per discussion here https://github.com/rustwasm/team/issues/251
Diffstat (limited to 'src')
-rw-r--r--src/librustc_codegen_ssa/back/linker.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/librustc_codegen_ssa/back/linker.rs b/src/librustc_codegen_ssa/back/linker.rs
index 06d4f940436..ad61f8f01d8 100644
--- a/src/librustc_codegen_ssa/back/linker.rs
+++ b/src/librustc_codegen_ssa/back/linker.rs
@@ -911,9 +911,6 @@ impl<'a> WasmLd<'a> {
         // For now we just never have an entry symbol
         cmd.arg("--no-entry");
 
-        // Make the default table accessible
-        cmd.arg("--export-table");
-
         // Rust code should never have warnings, and warnings are often
         // indicative of bugs, let's prevent them.
         cmd.arg("--fatal-warnings");