uint32_t AArch64TargetInfo::getTlsGotRel(uint32_t Type) const {
assert(Type == R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 ||
- Type == R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC);
- return Type;
+ Type == R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC);
+ return Type;
}
bool AArch64TargetInfo::isTlsDynRel(uint32_t Type, const SymbolBody &S) const {
uint64_t X = SA + TPOff;
checkUInt<32>(X, Type);
- uint32_t Inst = read32le (Loc);
+ uint32_t Inst = read32le(Loc);
uint32_t NewInst;
if (Type == R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21) {
// Generate movz.
write32le(Loc, NewInst);
}
-
// Implementing relocations for AMDGPU is low priority since most
// programs don't use relocations now. Thus, this function is not
// actually called (relocateOne is called for each relocation).