]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Don't treat as separate symbols if unversioned symbol is undefined.
authorCary Coutant <ccoutant@gmail.com>
Tue, 27 Sep 2016 19:08:19 +0000 (12:08 -0700)
committerCary Coutant <ccoutant@gmail.com>
Tue, 27 Sep 2016 19:24:09 +0000 (12:24 -0700)
commita617f9ddc3e30bca79cd40f4afa90d2851260f38
tree2529f644c314b7fcfdff7e11e6f03b9ed382a9f9
parent2b465e0c111dbf68fe4c65ae64800118de378399
Don't treat as separate symbols if unversioned symbol is undefined.

When we see an unversioned symbol reference in a shared library, followed
by a default definition of the symbol in another shared library, we were
treating them as separate symbols. That should only happen when both are
definitions.

gold/
PR gold/20238
* symtab.cc (Symbol_table::define_default_version): Check that
unversioned symbol is defined.
gold/ChangeLog
gold/symtab.cc