[PATCH] D143540: [llvm-lib] Add support for writing COFF archives.
Jacek Caban via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 7 16:52:27 PST 2023
jacek created this revision.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
jacek requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
We currently just use GNU format for llvm-lib. This mostly works, but ARM64EC needs an additional section that does not really fit GNU format. This patch implements writing in COFF format (as in, it's what archive reader considers as K_COFF). This mostly requires symbol emitting symbol map. Note that, just like in case of MSVC, symbols are de-duplicated in both usual symbol table and the new symbol map.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D143540
Files:
llvm/lib/Object/ArchiveWriter.cpp
llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
llvm/test/tools/llvm-lib/duplicate.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143540.495683.patch
Type: text/x-patch
Size: 11793 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230208/07874197/attachment.bin>
More information about the llvm-commits
mailing list