[PATCH] D143541: [llvm-lib] Add support for ARM64EC libraries.

Jacek Caban via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 21 08:38:17 PDT 2023


jacek updated this revision to Diff 506995.
jacek marked an inline comment as done.
jacek added a comment.

The new version also allows including x86_64 object files in ARM64EC libraries. I originally avoided expressing target in writeArchive call, but it now doesn't have enough info to decide what kind of symbol map to produce (if only x86_64 binaries are passed, it can't deduce if it's meant to be x86_64 or ARM64EC library).

I also added a few more tests and I will add another patch to llvm-nm for printing EC symbol map, which allows for better tests.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143541/new/

https://reviews.llvm.org/D143541

Files:
  llvm/include/llvm/Object/ArchiveWriter.h
  llvm/lib/Object/ArchiveWriter.cpp
  llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp
  llvm/test/tools/llvm-lib/ecsymbols.test
  llvm/test/tools/llvm-lib/machine-mismatch.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143541.506995.patch
Type: text/x-patch
Size: 15333 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230321/7f88cda2/attachment.bin>


More information about the llvm-commits mailing list