[PATCH] D31011: recommend using llvm-ar when finding undefined references and empty archives
Bob Haarman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 15 16:08:46 PDT 2017
inglorion created this revision.
When we perform LTO builds with a version of ar that does not
understand LLVM bitcode objects, we end up with undefined references,
because our archive files do not list the bitcode symbols in their
indices. The error messages do not make it clear what the real problem
is. This change adds a note that points out the likely problem and
solution. It is similar in spirit to r282633, but aims to avoid false
positives by only triggering when we see both undefined references and
archives without symbols in their indices.
Fixes PR32281.
https://reviews.llvm.org/D31011
Files:
ELF/Driver.cpp
ELF/Error.cpp
ELF/Error.h
ELF/InputFiles.cpp
ELF/InputFiles.h
ELF/Relocations.cpp
test/ELF/lto/archive-no-index.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31011.91954.patch
Type: text/x-patch
Size: 7110 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170315/60c68a87/attachment.bin>
More information about the llvm-commits
mailing list