Fixes PR48681: after LTO, lto.tmp may reference a libcall symbol not in an IR
symbol table of any bitcode file. If such a symbol is defined in an archive
matched by a --exclude-libs, we don't correctly localize the symbol.
Add another excludeLibs after compileBitcodeFiles to localize such libcall
symbols. Unfortunately we have keep the existing one for D43126.
As I understand it, using VER_NDX_LOCAL is an implementation detail of
--exclude-libs and the symbol ... has undefined version ... error should not
be exempted. Ideally we should error as GNU ld does.
Forgot to add a comment:
lto.tmp may reference a libcall symbol not in the IR symbol table. If such a symbol is defined in an archive matched by a --exclude-libs, the symbol should be localized.