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.
This commit is contained in:
parent
e785ec03fb
commit
8d6d383d7c
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user