[lld] [llvm] [lld][COFF] Add support for IMAGE_REL_ARM64_BRANCH26 (PR #202588)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 05:25:10 PDT 2026


================
@@ -318,13 +318,6 @@ static uint64_t adjustFixupValue(const MCFixup &Fixup, const MCValue &Target,
     return (Value >> 2) & 0xffff;
   case AArch64::fixup_aarch64_pcrel_branch26:
   case AArch64::fixup_aarch64_pcrel_call26:
-    if (TheTriple.isOSBinFormatCOFF() && !IsResolved && SignedValue != 0) {
-      // MSVC link.exe and lld do not support this relocation type
----------------
mstorsjo wrote:

Does MSVC link.exe support this relocation type with a nonzero offset now?

Earlier it didn't - and we intentionally chose not to not emit such relocations as we would produce object files that only work with LLD but not the official linker for the platform. Has this changed?

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


More information about the llvm-commits mailing list