diff options
Diffstat (limited to 'gold/symtab.h')
-rw-r--r-- | gold/symtab.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gold/symtab.h b/gold/symtab.h index b46510d..d8e68a0 100644 --- a/gold/symtab.h +++ b/gold/symtab.h @@ -220,6 +220,11 @@ class Symbol set_needs_dynsym_entry() { this->needs_dynsym_entry_ = true; } + // Return whether this symbol should be added to the dynamic symbol + // table. + bool + should_add_dynsym_entry() const; + // Return whether this symbol has been seen in a regular object. bool in_reg() const @@ -395,6 +400,16 @@ class Symbol || this->visibility_ == elfcpp::STV_PROTECTED); } + // Return true if this symbol can be preempted by a definition in + // another link unit. + bool + is_preemptible() const + { + return (this->visibility_ != elfcpp::STV_INTERNAL + && this->visibility_ != elfcpp::STV_HIDDEN + && this->visibility_ != elfcpp::STV_PROTECTED); + } + // Return whether there should be a warning for references to this // symbol. bool |