aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-08-22 05:06:38 +0000
committerIan Lance Taylor <iant@google.com>2007-08-22 05:06:38 +0000
commita6badf5a97374debb5be7b7e6e624f409e14e00d (patch)
tree5becd23e990a6d3cc72b377591a6652673fb1b72 /gold/symtab.h
parent6b2d86bda4d98894598f17fb8682e7cd4eafd833 (diff)
downloadfsf-binutils-gdb-a6badf5a97374debb5be7b7e6e624f409e14e00d.zip
fsf-binutils-gdb-a6badf5a97374debb5be7b7e6e624f409e14e00d.tar.gz
fsf-binutils-gdb-a6badf5a97374debb5be7b7e6e624f409e14e00d.tar.bz2
Add support for -E/--export-dynamic. Also clean up --help output a bit.
Diffstat (limited to 'gold/symtab.h')
-rw-r--r--gold/symtab.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gold/symtab.h b/gold/symtab.h
index 66e98bc..cba97d0 100644
--- a/gold/symtab.h
+++ b/gold/symtab.h
@@ -337,6 +337,14 @@ class Symbol
|| this->type_ == elfcpp::STT_COMMON));
}
+ // Return whether this symbol can be seen outside this object.
+ bool
+ is_externally_visible() const
+ {
+ return (this->visibility_ == elfcpp::STV_DEFAULT
+ || this->visibility_ == elfcpp::STV_PROTECTED);
+ }
+
// Return whether there should be a warning for references to this
// symbol.
bool