diff options
Diffstat (limited to 'gold/symtab.h')
-rw-r--r-- | gold/symtab.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/symtab.h b/gold/symtab.h index 2f43c4b..81ad2d9 100644 --- a/gold/symtab.h +++ b/gold/symtab.h @@ -405,6 +405,10 @@ class Symbol bool is_preemptible() const { + // It doesn't make sense to ask whether a symbol defined in + // another object is preemptible. + gold_assert(!this->is_from_dynobj()); + return (this->visibility_ != elfcpp::STV_INTERNAL && this->visibility_ != elfcpp::STV_HIDDEN && this->visibility_ != elfcpp::STV_PROTECTED |