diff options
author | Ian Lance Taylor <ian@airs.com> | 2011-06-29 14:43:08 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2011-06-29 14:43:08 +0000 |
commit | f3ae1b28a2b5ca4f69e3d9f30e6643e64fef14e5 (patch) | |
tree | 923e86354bc56700dc972b37ef25f085514c0dc0 /gold/symtab.cc | |
parent | 7016a5d53dcbb974a7c68a38728cc1438c02e016 (diff) | |
download | gdb-f3ae1b28a2b5ca4f69e3d9f30e6643e64fef14e5.zip gdb-f3ae1b28a2b5ca4f69e3d9f30e6643e64fef14e5.tar.gz gdb-f3ae1b28a2b5ca4f69e3d9f30e6643e64fef14e5.tar.bz2 |
PR gold/12818
* symtab.cc (Symbol::should_add_dynsym_entry): Don't add undefined
symbols which are not used in a relocation.
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r-- | gold/symtab.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc index 3df86b5..7e5b66c 100644 --- a/gold/symtab.cc +++ b/gold/symtab.cc @@ -414,6 +414,7 @@ Symbol::should_add_dynsym_entry(Symbol_table* symtab) const // externally visible, we need to add it. if ((parameters->options().export_dynamic() || parameters->options().shared()) && !this->is_from_dynobj() + && !this->is_undefined() && this->is_externally_visible()) return true; |