From f3ae1b28a2b5ca4f69e3d9f30e6643e64fef14e5 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 29 Jun 2011 14:43:08 +0000 Subject: PR gold/12818 * symtab.cc (Symbol::should_add_dynsym_entry): Don't add undefined symbols which are not used in a relocation. --- gold/symtab.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'gold/symtab.cc') diff --git a/gold/symtab.cc b/gold/symtab.cc index 3df86b55c8f..7e5b66c83dd 100644 --- a/gold/symtab.cc +++ b/gold/symtab.cc @@ -414,6 +414,7 @@ Symbol::should_add_dynsym_entry(Symbol_table* symtab) const // externally visible, we need to add it. if ((parameters->options().export_dynamic() || parameters->options().shared()) && !this->is_from_dynobj() + && !this->is_undefined() && this->is_externally_visible()) return true; -- cgit v1.2.1