diff options
author | Ian Lance Taylor <iant@google.com> | 2007-10-16 23:23:08 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-10-16 23:23:08 +0000 |
commit | 436ca963fd42564971f2906e4ba7263d513e483c (patch) | |
tree | 422fb94d22ab9e5df3475ff43c3b734625a489f2 /gold/symtab.h | |
parent | a360aedd0fd0e2c02c0896046bec126e6ad72308 (diff) | |
download | gdb-436ca963fd42564971f2906e4ba7263d513e483c.zip gdb-436ca963fd42564971f2906e4ba7263d513e483c.tar.gz gdb-436ca963fd42564971f2906e4ba7263d513e483c.tar.bz2 |
From Cary Coutant: preliminary shared library support.
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 |