aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2012-05-22 23:50:52 +0000
committerCary Coutant <ccoutant@google.com>2012-05-22 23:50:52 +0000
commitb24fdbf5e047e534ca9783af40dbefdf46f8bd0c (patch)
tree9163ea60c2fc4ab3a2f5f0b34940a84f38bb5b7b /gold/symtab.cc
parent8d409d16dd8660cfca6c32f3feed3eca36d55c20 (diff)
downloadgdb-b24fdbf5e047e534ca9783af40dbefdf46f8bd0c.zip
gdb-b24fdbf5e047e534ca9783af40dbefdf46f8bd0c.tar.gz
gdb-b24fdbf5e047e534ca9783af40dbefdf46f8bd0c.tar.bz2
gold/
* symtab.cc (Symbol::should_add_dynsym_entry): Check for relocatable object before exporting symbol.
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r--gold/symtab.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc
index 1edb88d..ebce5ca 100644
--- a/gold/symtab.cc
+++ b/gold/symtab.cc
@@ -365,8 +365,9 @@ Symbol::should_add_dynsym_entry(Symbol_table* symtab) const
// If the symbol was forced dynamic in a --dynamic-list file
// or an --export-dynamic-symbol option, add it.
- if (parameters->options().in_dynamic_list(this->name())
- || parameters->options().is_export_dynamic_symbol(this->name()))
+ if (!this->is_from_dynobj()
+ && (parameters->options().in_dynamic_list(this->name())
+ || parameters->options().is_export_dynamic_symbol(this->name())))
{
if (!this->is_forced_local())
return true;