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

Daniel Paoliello via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 13:47:32 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) +
----------------
dpaoliello wrote:

Not a fan of this error message: it seems odd that if the user asked for the machine type to be inferred that the linker reports that something is incompatible. Maybe say that it is ambiguous or can't be decided/inferred? 

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


More information about the llvm-commits mailing list