aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2006-12-06 06:28:56 +0000
committerIan Lance Taylor <iant@google.com>2006-12-06 06:28:56 +0000
commit008db82ec1ba308dba0fcf7767b93c1d56897bcc (patch)
tree93fef89fd7f3241e644fc770a3e59129a01f3407 /gold/symtab.h
parent8f2e9323f0b754011d0fa089bac65c9d28b73483 (diff)
downloadfsf-binutils-gdb-008db82ec1ba308dba0fcf7767b93c1d56897bcc.zip
fsf-binutils-gdb-008db82ec1ba308dba0fcf7767b93c1d56897bcc.tar.gz
fsf-binutils-gdb-008db82ec1ba308dba0fcf7767b93c1d56897bcc.tar.bz2
Don't emit symbols seen only in dynamic object, don't read duplicate
dynamic object.
Diffstat (limited to 'gold/symtab.h')
-rw-r--r--gold/symtab.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gold/symtab.h b/gold/symtab.h
index 6e4344d4..66e98bc 100644
--- a/gold/symtab.h
+++ b/gold/symtab.h
@@ -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.