[ELF] - Versionscript: support mangled symbols with the same name.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 13 Sep 2016 10:45:39 +0000 (10:45 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 13 Sep 2016 10:45:39 +0000 (10:45 +0000)
commite2051efcbe51211ca954c2c7fda3725974ed4bdd
tree572271e580b2213fae640f00867e442020f296ca
parentdf91b2fea816f7fcc7cd5f609e6b44964dcabe2b
[ELF] - Versionscript: support mangled symbols with the same name.

This is PR30312. Info from bug page:

Both of these symbols demangle to abc::abc():
_ZN3abcC1Ev
_ZN3abcC2Ev
(These would be abc's complete object constructor and base object constructor, respectively.)
however with "abc::abc()" in the version script only one of the two receives the symbol version.

Patch fixes that.
It uses testcase created by Ed Maste (D24306).

Differential revision: https://reviews.llvm.org/D24336

llvm-svn: 281318
lld/ELF/SymbolTable.cpp
lld/ELF/SymbolTable.h
lld/test/ELF/version-script-extern.s