[PATCH] D143540: [llvm-lib] Add support for writing COFF archives.
Jacek Caban via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 22 15:22:34 PDT 2023
jacek added inline comments.
================
Comment at: llvm/lib/Object/ArchiveWriter.cpp:769
+ // COFF symbol map uses 16-bit indexes, so we can't use it if there are too
+ // many members.
+ if (isCOFFArchive(Kind) && NewMembers.size() > 0xfffe)
----------------
efriedma wrote:
> I'm curious, what does MSVC lib do here? Refuse to construct the archive? Skip creating the symbol table? Use some other output format?
According to my testing, it has a limit of 4090 object files. When I try to pass more, I get an ambiguous error:
$ lib -out:test.lib -nologo @inputs/files.txt
LINK : fatal error LNK1104: cannot open file 'inputs\a4091.obj'
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143540/new/
https://reviews.llvm.org/D143540
More information about the llvm-commits
mailing list