mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 13:27:26 +08:00
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:
@ -1,5 +1,10 @@
|
|||||||
2009-12-29 Ian Lance Taylor <iant@google.com>
|
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
|
PR 10450
|
||||||
* i386.cc (class Target_i386): Initialize global_offset_table_ in
|
* i386.cc (class Target_i386): Initialize global_offset_table_ in
|
||||||
constructor. Add global_offset_table_ field.
|
constructor. Add global_offset_table_ field.
|
||||||
|
@ -261,7 +261,9 @@ class Symbol
|
|||||||
needs_dynsym_entry() const
|
needs_dynsym_entry() const
|
||||||
{
|
{
|
||||||
return (this->needs_dynsym_entry_
|
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.
|
// Mark this symbol as needing an entry in the dynamic symbol table.
|
||||||
|
Reference in New Issue
Block a user