Lines Matching refs:Rel
409 for (const RelTy &Rel : Rels) { in copyRelocations() local
410 RelType Type = Rel.getType(Config->IsMips64EL); in copyRelocations()
411 Symbol &Sym = getFile<ELFT>()->getRelocTargetSym(Rel); in copyRelocations()
417 P->r_addend = getAddend<ELFT>(Rel); in copyRelocations()
421 P->r_offset = Sec->getVA(Rel.r_offset); in copyRelocations()
446 int64_t Addend = getAddend<ELFT>(Rel); in copyRelocations()
447 const uint8_t *BufLoc = Sec->data().begin() + Rel.r_offset; in copyRelocations()
470 Sec->Relocations.push_back({R_ABS, Type, Rel.r_offset, Addend, &Sym}); in copyRelocations()
783 for (const RelTy &Rel : Rels) { in relocateNonAlloc() local
784 RelType Type = Rel.getType(Config->IsMips64EL); in relocateNonAlloc()
793 uint64_t Offset = getOffset(Rel.r_offset); in relocateNonAlloc()
795 int64_t Addend = getAddend<ELFT>(Rel); in relocateNonAlloc()
799 Symbol &Sym = getFile<ELFT>()->getRelocTargetSym(Rel); in relocateNonAlloc()
841 for (const Relocation &Rel : Sec->Relocations) { in relocateNonAllocForRelocatable() local
843 assert(Rel.Expr == R_ABS); in relocateNonAllocForRelocatable()
844 uint8_t *BufLoc = Buf + Rel.Offset + Sec->OutSecOff; in relocateNonAllocForRelocatable()
845 uint64_t TargetVA = SignExtend64(Rel.Sym->getVA(Rel.Addend), Bits); in relocateNonAllocForRelocatable()
846 Target->relocateOne(BufLoc, Rel.Type, TargetVA); in relocateNonAllocForRelocatable()
873 for (const Relocation &Rel : Relocations) { in relocateAlloc() local
874 uint64_t Offset = Rel.Offset; in relocateAlloc()
878 RelType Type = Rel.Type; in relocateAlloc()
881 RelExpr Expr = Rel.Expr; in relocateAlloc()
883 getRelocTargetVA(File, Type, Rel.Addend, AddrLoc, *Rel.Sym, Expr), in relocateAlloc()
917 if (Rel.Sym->NeedsTocRestore) { in relocateAlloc()
990 for (Relocation &Rel : Relocations) { in adjustSplitStackFunctionPrologues()
993 if (Rel.Sym->isLocal()) in adjustSplitStackFunctionPrologues()
997 if (Rel.Sym->getName().startswith("__morestack")) { in adjustSplitStackFunctionPrologues()
998 if (Rel.Sym->getName().equals("__morestack")) in adjustSplitStackFunctionPrologues()
999 MorestackCalls.push_back(&Rel); in adjustSplitStackFunctionPrologues()
1006 if (Rel.Sym->Type != STT_FUNC) in adjustSplitStackFunctionPrologues()
1014 if (Defined *D = dyn_cast<Defined>(Rel.Sym)) in adjustSplitStackFunctionPrologues()
1019 if (enclosingPrologueAttempted(Rel.Offset, Prologues)) in adjustSplitStackFunctionPrologues()
1022 if (Defined *F = getEnclosingFunction<ELFT>(Rel.Offset)) { in adjustSplitStackFunctionPrologues()
1029 " (with -fsplit-stack) calls " + Rel.Sym->getName() + in adjustSplitStackFunctionPrologues()
1054 copyRelocations<ELFT>(Buf + OutSecOff, getDataAs<typename ELFT::Rel>()); in writeTo()
1108 const RelTy &Rel = Rels[RelocI]; in getReloc() local
1109 if (Rel.r_offset < Begin) in getReloc()
1112 if (Rel.r_offset < Begin + Size) in getReloc()