[lld] [LLD][COFF] Add support for hybrid ARM64X entry points (PR #123096)

Jacek Caban via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 15 17:23:47 PST 2025


================
@@ -2584,6 +2586,16 @@ void Writer::createDynamicRelocs() {
                          coffHeaderOffset + offsetof(coff_file_header, Machine),
                          AMD64);
 
+  if (ctx.symtab.entry || ctx.hybridSymtab->entry) {
+    Defined *entrySym = ctx.hybridSymtab->entry
+                            ? dyn_cast<Defined>(ctx.hybridSymtab->entry)
+                            : nullptr;
----------------
cjacek wrote:

Oh, right, it could even be `cast_or_null`.

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


More information about the llvm-commits mailing list