From 4407a791c28b3599c9c3138358aa50a8de492965 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 28 Oct 2018 08:52:56 -0700 Subject: [PATCH] Discard internal LLD symbols during gc These don't seem to be widely used and they're not needed by wasm-bindgen itself, so let's remove the symbols by default and optionally in the future we can add an option to retain them. --- crates/gc/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/gc/src/lib.rs b/crates/gc/src/lib.rs index 2dde3002..8ba3b46f 100644 --- a/crates/gc/src/lib.rs +++ b/crates/gc/src/lib.rs @@ -53,6 +53,9 @@ fn run(config: &mut Config, module: &mut Module) { let analysis = { let mut cx = LiveContext::new(&module); cx.blacklist.insert("rust_eh_personality"); + cx.blacklist.insert("__indirect_function_table"); + cx.blacklist.insert("__heap_base"); + cx.blacklist.insert("__data_end"); if let Some(section) = module.export_section() { for (i, entry) in section.entries().iter().enumerate() {