]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gold/symtab.cc
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:08:28 +0000 (12:08 -0700)
commite3f07b5b750554bbbbee1bddc34bb77fd7d31eeb
tree96454a34955a2149b805714951a3702e4583c3a2
parent07619d52fef6fda58cbc327512a4d8ec60ad5637
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