PR gold/12818
* symtab.cc (Symbol::should_add_dynsym_entry): Don't add undefined symbols which are not used in a relocation.
This commit is contained in:
parent
7016a5d53d
commit
f3ae1b28a2
@ -1,3 +1,9 @@
|
||||
2011-06-29 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
PR gold/12818
|
||||
* symtab.cc (Symbol::should_add_dynsym_entry): Don't add undefined
|
||||
symbols which are not used in a relocation.
|
||||
|
||||
2011-06-28 Ian Lance Taylor <iant@google.com>
|
||||
|
||||
PR gold/12898
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user