Merge pull request #984 from alexcrichton/more-gc

Discard internal LLD symbols during gc
This commit is contained in:
Nick Fitzgerald 2018-10-29 10:44:50 +01:00 committed by GitHub
commit 73740ba6ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {