ELF: Fix regression in TLS attribute mismatch logic.
authorPeter Collingbourne <peter@pcc.me.uk>
Tue, 3 May 2016 18:03:47 +0000 (18:03 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Tue, 3 May 2016 18:03:47 +0000 (18:03 +0000)
commitf3a2b0e8f77041ff49441486e6cc296ff685af61
treec3c4ee8e2c694c11b3b0c1ce4675b315b40aeaf1
parent6f535b744f43df17e896241610201941f2a7af2b
ELF: Fix regression in TLS attribute mismatch logic.

Introduce a special symbol type to indicate that we have not yet seen a type
for the symbol, so we should not report TLS mismatches for that symbol.

Differential Revision: http://reviews.llvm.org/D19836

llvm-svn: 268411
lld/ELF/SymbolTable.cpp
lld/ELF/Symbols.h
lld/test/ELF/tls-archive.s [new file with mode: 0644]