Don't emit symbols seen only in dynamic object, don't read duplicate

dynamic object.
This commit is contained in:
Ian Lance Taylor
2006-12-06 06:28:56 +00:00
parent 8f2e9323f0
commit 008db82ec1
8 changed files with 96 additions and 37 deletions

View File

@ -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.