aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-08-29 05:48:24 +0000
committerIan Lance Taylor <iant@google.com>2007-08-29 05:48:24 +0000
commit429c15693cbc151d24546c397e8c7435f77e1b14 (patch)
tree2fbe418f132287f181c0bd6a12b8b006ad3b4918 /gold/symtab.h
parentd037d08851dcb4ce4feb713a7f024ebac5d84cca (diff)
downloadfsf-binutils-gdb-429c15693cbc151d24546c397e8c7435f77e1b14.zip
fsf-binutils-gdb-429c15693cbc151d24546c397e8c7435f77e1b14.tar.gz
fsf-binutils-gdb-429c15693cbc151d24546c397e8c7435f77e1b14.tar.bz2
Any symbol which is in both a regular object and a dynamic object
requires an entry in the dynamic symbol table.
Diffstat (limited to 'gold/symtab.h')
-rw-r--r--gold/symtab.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gold/symtab.h b/gold/symtab.h
index 15d1f78..816afb3 100644
--- a/gold/symtab.h
+++ b/gold/symtab.h
@@ -178,7 +178,10 @@ class Symbol
// table.
bool
needs_dynsym_entry() const
- { return this->needs_dynsym_entry_; }
+ {
+ return (this->needs_dynsym_entry_
+ || (this->in_reg() && this->in_dyn()));
+ }
// Mark this symbol as needing an entry in the dynamic symbol table.
void