[PATCH] D66355: [COFF] Add libcall symbols to the link when LTO is being used.
Amy Huang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 16 10:33:07 PDT 2019
akhuang created this revision.
akhuang added a reviewer: rnk.
Herald added subscribers: llvm-commits, dexonsmith, inglorion, mehdi_amini.
Herald added a project: LLVM.
If a library function is defined in a bitcode file in an archive
member, add the archive members to the link before LTO, since LTO may
create references to the library functions.
Similar to the change for ELF (https://reviews.llvm.org/D50017).
This is a fix for https://bugs.llvm.org/show_bug.cgi?id=42626#c3.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D66355
Files:
lld/COFF/Driver.cpp
lld/COFF/SymbolTable.cpp
lld/COFF/SymbolTable.h
lld/test/COFF/Inputs/libcall-archive.ll
lld/test/COFF/Inputs/libcall-archive.s
lld/test/COFF/libcall-archive.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66355.215631.patch
Type: text/x-patch
Size: 3418 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190816/6624a70c/attachment.bin>
More information about the llvm-commits
mailing list