Handle a weak undefined tls to archive member.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 22 Feb 2016 23:19:29 +0000 (23:19 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 22 Feb 2016 23:19:29 +0000 (23:19 +0000)
commit8176d57d621b95833acf36500b88f4550e799e8b
tree07d2ca7ffe2f6b8d9f5fe103098b76ec716fa1ca
parent5e8b54afdb82d93bca65c77520760dd35da5a51f
Handle a weak undefined tls to archive member.

A weak undefined should not fetch archive members, so we have to keep
the Lazy symbol.

That means the lazy symbol has to encode information about the original
weak undef.

Fixes pr25762.

llvm-svn: 261591
lld/ELF/SymbolTable.cpp
lld/test/ELF/Inputs/tls-in-archive.s [new file with mode: 0644]
lld/test/ELF/tls-in-archive.s [new file with mode: 0644]