[PATCH] D143540: [llvm-lib] Add support for writing COFF archives.
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 22 12:52:05 PDT 2023
efriedma accepted this revision.
efriedma added a comment.
This revision is now accepted and ready to land.
Please explicitly note in the commit message that this doesn't affect other archive-writing tools, like llvm-ar.
Otherwise LGTM
================
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)
----------------
I'm curious, what does MSVC lib do here? Refuse to construct the archive? Skip creating the symbol table? Use some other output format?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143540/new/
https://reviews.llvm.org/D143540
More information about the llvm-commits
mailing list