[lld] [LLD][COFF] Add ARM64EC support to findLineTable. (PR #87240)

Jacek Caban via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 1 14:51:12 PDT 2024


================
@@ -1735,6 +1735,8 @@ static uint32_t getSecrelReloc(llvm::COFF::MachineTypes machine) {
   case ARMNT:
     return COFF::IMAGE_REL_ARM_SECREL;
   case ARM64:
+  case ARM64EC:
+  case ARM64X:
----------------
cjacek wrote:

An object file can be ARM64X too, see https://reviews.llvm.org/D149087 for the context of allowing them:

> We do expect ARM64X on input as well. Individual input object file with its machine value of ARM64X are rare and weird, but they do exist and llvm-cvtres can produce them with https://reviews.llvm.org/D148517 (...) According to my testing, ARM64X objects are accepted by link.exe for all targets: ARM64, ARM64EC and ARM64X.

Output of `llvm-cvtres` is not going to cause references errors, so it's indeed not very interesting in this case (it would require somehow generating such file), but adding it here for completeness seems simple enough to me.

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


More information about the llvm-commits mailing list