[lld] [LLD][COFF] Require explicit specification of ARM64EC target (PR #116281)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 15 04:23:56 PST 2024


================
@@ -74,13 +77,18 @@ void SymbolTable::addFile(InputFile *file) {
   }
 
   MachineTypes mt = file->getMachineType();
+  if (!compatibleMachineType(ctx, mt)) {
+    if (isArm64EC(mt))
+      error(toString(file) + ": incompatible machine type " + machineToStr(mt) +
----------------
mstorsjo wrote:

But isn't it possible to hit this case too, e.g. if you're linking an i386 module, but you're hitting an arm64ec input file?

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


More information about the llvm-commits mailing list