diff options
author | Cary Coutant <ccoutant@google.com> | 2012-05-22 23:50:52 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2012-05-22 23:50:52 +0000 |
commit | b24fdbf5e047e534ca9783af40dbefdf46f8bd0c (patch) | |
tree | 9163ea60c2fc4ab3a2f5f0b34940a84f38bb5b7b /gold/symtab.cc | |
parent | 8d409d16dd8660cfca6c32f3feed3eca36d55c20 (diff) | |
download | fsf-binutils-gdb-b24fdbf5e047e534ca9783af40dbefdf46f8bd0c.zip fsf-binutils-gdb-b24fdbf5e047e534ca9783af40dbefdf46f8bd0c.tar.gz fsf-binutils-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.cc | 5 |
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; |