An AArch64 VK_GOT fixup must have a symbol. MCAssembler::evaluateFixup considers
such a fixup not resolved. The code path cannot trigger.
if (Kind == AArch64::fixup_aarch64_pcrel_adrp_imm21)
return true;
- AArch64MCExpr::VariantKind RefKind =
- static_cast<AArch64MCExpr::VariantKind>(Target.getRefKind());
- AArch64MCExpr::VariantKind SymLoc = AArch64MCExpr::getSymbolLoc(RefKind);
- // LDR GOT relocations need a relocation
- if (Kind == AArch64::fixup_aarch64_ldr_pcrel_imm19 &&
- SymLoc == AArch64MCExpr::VK_GOT)
- return true;
return false;
}