Accept archive files with no symbol table instad of warning on them.
authorRui Ueyama <ruiu@google.com>
Wed, 3 May 2017 21:03:08 +0000 (21:03 +0000)
committerRui Ueyama <ruiu@google.com>
Wed, 3 May 2017 21:03:08 +0000 (21:03 +0000)
commitfd7deda57ada1c6d6876840598b92096fdb1a4ca
tree6ded0c986e4882c4ef528f64dbadaf255e610129
parent1f8b73d15c1b758a9d6081463f6473175ed78ca7
Accept archive files with no symbol table instad of warning on them.

It seems virtually everyone who tries to do LTO build with Clang and
LLD was hit by a mistake to forget using llvm-ar command to create
archive files. I wasn't an exception. Since this is an annoying common
issue, it is probably better to handle that gracefully rather than
reporting an error and tell the user to redo build with different
configuration.

Differential Revision: https://reviews.llvm.org/D32721

llvm-svn: 302083
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/InputFiles.cpp
lld/ELF/InputFiles.h
lld/ELF/Relocations.cpp
lld/test/ELF/lto/archive-no-index.ll