[ELF] Error on archive with missing index
authorSam Clegg <sbc@chromium.org>
Wed, 3 Jul 2019 02:29:02 +0000 (02:29 +0000)
committerSam Clegg <sbc@chromium.org>
Wed, 3 Jul 2019 02:29:02 +0000 (02:29 +0000)
commit99745896cedbbee5ec9c0343a055e12ccd5d5113
tree6f12788427dc5e896d564dd71ce3a1d9a858b445
parentba5a72ff8dc7486d7101c0190bb29d716b75a402
[ELF] Error on archive with missing index

This matches the wasm lld and GNU ld behavior.

The ELF linker has special handling for bitcode archives but if that
doesn't kick in we probably want to error out rather than silently
ignore the library.

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

llvm-svn: 364998
lld/ELF/Driver.cpp
lld/test/ELF/archive-no-index.s [new file with mode: 0644]
lld/test/ELF/lto/archive-no-index.ll