[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:55:41 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:
>From a quick test with the latest versions I have around, MS link.exe 14.51.36243.0 and 14.52.36405.1 (PREVIEW), it seems like it still doesn't handle the immediate like this for this relocation.
So therefore I don't think we should be doing this - at least unless there's a really good motivation to why we want to create object files that deviate from the upstream spec in very subtle ways.
https://github.com/llvm/llvm-project/pull/202588
More information about the llvm-commits
mailing list