* symtab.h (Symbol::needs_dynsym_entry): A symbol in both a
	regular and a dynamic object only needs a dynamic symbol table
	entry if it is externally visible.
This commit is contained in:
Ian Lance Taylor 2009-12-30 07:40:01 +00:00
parent e785ec03fb
commit 8d6d383d7c
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,10 @@
2009-12-29 Ian Lance Taylor <iant@google.com>
PR 10450
* symtab.h (Symbol::needs_dynsym_entry): A symbol in both a
regular and a dynamic object only needs a dynamic symbol table
entry if it is externally visible.
PR 10450
* i386.cc (class Target_i386): Initialize global_offset_table_ in
constructor. Add global_offset_table_ field.

View File

@ -261,7 +261,9 @@ class Symbol
needs_dynsym_entry() const
{
return (this->needs_dynsym_entry_
|| (this->in_reg() && this->in_dyn()));
|| (this->in_reg()
&& this->in_dyn()
&& this->is_externally_visible()));
}
// Mark this symbol as needing an entry in the dynamic symbol table.