mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 14:59:31 +08:00
Don't emit symbols seen only in dynamic object, don't read duplicate
dynamic object.
This commit is contained in:
@ -185,6 +185,16 @@ class Symbol
|
||||
set_needs_dynsym_entry()
|
||||
{ this->needs_dynsym_entry_ = true; }
|
||||
|
||||
// Return whether this symbol has been seen in a regular object.
|
||||
bool
|
||||
in_reg() const
|
||||
{ return this->in_reg_; }
|
||||
|
||||
// Mark this symbol as having been seen in a regular object.
|
||||
void
|
||||
set_in_reg()
|
||||
{ this->in_reg_ = true; }
|
||||
|
||||
// Mark this symbol as having been seen in a dynamic object.
|
||||
void
|
||||
set_in_dyn()
|
||||
@ -469,6 +479,8 @@ class Symbol
|
||||
bool is_forwarder_ : 1;
|
||||
// True if this symbol needs to be in the dynamic symbol table.
|
||||
bool needs_dynsym_entry_ : 1;
|
||||
// True if we've seen this symbol in a regular object.
|
||||
bool in_reg_ : 1;
|
||||
// True if we've seen this symbol in a dynamic object.
|
||||
bool in_dyn_ : 1;
|
||||
// True if the symbol has an entry in the GOT section.
|
||||
|
Reference in New Issue
Block a user