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

Jacek Caban via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 17 08:12:12 PDT 2024


================
@@ -152,6 +152,38 @@ void ObjFile::parseLazy() {
   }
 }
 
+struct ECMapEntry {
+  ulittle32_t src;
+  ulittle32_t dst;
+  ulittle32_t type;
+};
+
+void ObjFile::initializeECThunks() {
+  for (SectionChunk *chunk : hybmpChunks) {
+    if (chunk->getContents().size() % sizeof(ECMapEntry)) {
+      error("Invalid .hybmp chunk size " + Twine(chunk->getContents().size()));
+      return;
----------------
cjacek wrote:

Good point, I changed it.

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


More information about the llvm-commits mailing list