uint32_t SymIndex = RI.getSymbol(Config->Mips64EL);
uint32_t Type = RI.getType(Config->Mips64EL);
uintX_t Offset = getOffset(RI.r_offset);
+ uintX_t A = getAddend<ELFT>(RI);
if (Offset == (uintX_t)-1)
continue;
if (Target->pointsToLocalDynamicGotEntry(Type) &&
!Target->canRelaxTls(Type, nullptr)) {
Target->relocateOne(BufLoc, BufEnd, Type, AddrLoc,
- Out<ELFT>::Got->getTlsIndexVA() +
- getAddend<ELFT>(RI));
+ Out<ELFT>::Got->getTlsIndexVA() + A);
continue;
}
continue;
}
- uintX_t A = getAddend<ELFT>(RI);
-
// PPC64 has a special relocation representing the TOC base pointer
// that does not have a corresponding symbol.
if (Config->EMachine == EM_PPC64 && RI.getType(false) == R_PPC64_TOC) {
if (Target->isTlsGlobalDynamicRel(Type) &&
!Target->canRelaxTls(Type, &Body)) {
Target->relocateOne(BufLoc, BufEnd, Type, AddrLoc,
- Out<ELFT>::Got->getGlobalDynAddr(Body) +
- getAddend<ELFT>(RI));
+ Out<ELFT>::Got->getGlobalDynAddr(Body) + A);
continue;
}