diff options
author | Ian Lance Taylor <iant@google.com> | 2006-12-06 06:28:56 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2006-12-06 06:28:56 +0000 |
commit | 008db82ec1ba308dba0fcf7767b93c1d56897bcc (patch) | |
tree | 93fef89fd7f3241e644fc770a3e59129a01f3407 /gold/symtab.h | |
parent | 8f2e9323f0b754011d0fa089bac65c9d28b73483 (diff) | |
download | gdb-008db82ec1ba308dba0fcf7767b93c1d56897bcc.zip gdb-008db82ec1ba308dba0fcf7767b93c1d56897bcc.tar.gz 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.h | 12 |
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. |