[lld] [LLD][COFF] Add support for including native ARM64 objects in ARM64EC images (PR #137653)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Wed May 14 03:29:26 PDT 2025


================
@@ -657,7 +656,7 @@ void LinkerDriver::setMachine(MachineTypes machine) {
 
   ctx.config.machine = machine;
 
-  if (machine != ARM64X) {
+  if (!isArm64EC(machine)) {
     ctx.symtab.machine = machine;
   } else {
     ctx.symtab.machine = ARM64EC;
----------------
mstorsjo wrote:

It would probably be good to add a comment here.

https://github.com/llvm/llvm-project/pull/137653


More information about the llvm-commits mailing list