[lld] [llvm] [LLD][COFF] Add support for ARM64EC entry thunks. (PR #88132)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 17 13:19:19 PDT 2024


================
@@ -411,7 +411,9 @@ void SectionChunk::writeTo(uint8_t *buf) const {
     applyRelocation(buf + rel.VirtualAddress, rel);
   }
 
-  // Write the offset to EC entry thunk preceding section contents.
+  // Write the offset to EC entry thunk preceding section contents. The low bit
+  // is always set, so it's effectively an offset from the last byte of the
+  // padding.
----------------
mstorsjo wrote:

Maybe `offset` instead of `padding` here?

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


More information about the llvm-commits mailing list