Don't lower the visibility because of shared symbols.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 8 Apr 2016 16:11:42 +0000 (16:11 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 8 Apr 2016 16:11:42 +0000 (16:11 +0000)
commita15fb15b0581ec6a187cceb677755800ba2fb58c
tree1ecc8dd48e7d4116386b2bf6677e8cdecd8e07a9
parent2d5126cdf57ac00388ee131dd7804c216ea4626e
Don't lower the visibility because of shared symbols.

If a shared library has a protected symbol 'foo', that doesn't imply
that the symbol 'foo' in the output should be protected or not.

llvm-svn: 265794
lld/ELF/Symbols.cpp
lld/test/ELF/Inputs/protected-shared.s
lld/test/ELF/protected-shared.s