Recommit r281318 "[ELF] - Versionscript: support mangled symbols with the same name."
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 15 Sep 2016 12:44:38 +0000 (12:44 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 15 Sep 2016 12:44:38 +0000 (12:44 +0000)
commit31c25ae90a4311d57f31ac8fc6a41a36a6b4b1cb
tree9641eccd69dfb2e46f193f0b1eb92f6f16e48bf6
parentfe7fd879d78c97a94a57d9beb7b5896f75491ae7
Recommit r281318 "[ELF] - Versionscript: support mangled symbols with the same name."

Previouly bot was failing:
http://lab.llvm.org:8011/builders/clang-with-lto-ubuntu/builds/413/steps/test-stage1-compiler/logs/stdio
Fixed possible segfault, so commit should bix the buildbot.

Initial commit message:

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: 281605
lld/ELF/SymbolTable.cpp
lld/ELF/SymbolTable.h
lld/test/ELF/version-script-extern.s