Lines Matching full:addend

225                                              uint32_t Type, int64_t Addend,  in resolveX86_64Relocation()  argument
232 support::ulittle64_t::ref(Section.Address + Offset) = Value + Addend; in resolveX86_64Relocation()
233 DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveX86_64Relocation()
239 Value += Addend; in resolveX86_64Relocation()
255 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
270 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
281 uint32_t Type, int32_t Addend) { in resolveX86Relocation() argument
289 Placeholder + Value + Addend; in resolveX86Relocation()
298 uint32_t RealOffset = Placeholder + Value + Addend - FinalAddress; in resolveX86Relocation()
312 uint32_t Type, int64_t Addend) { in resolveAArch64Relocation() argument
320 << format("%x", Type) << " Addend: 0x" << format("%llx", Addend) in resolveAArch64Relocation()
330 *TargetPtr = Value + Addend; in resolveAArch64Relocation()
334 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
344 uint64_t BranchImm = Value + Addend - FinalAddress; in resolveAArch64Relocation()
358 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
370 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
382 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
394 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
408 ((Value + Addend) & ~0xfffULL) - (FinalAddress & ~0xfffULL); in resolveAArch64Relocation()
426 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
438 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
453 uint32_t Type, int32_t Addend) { in resolveARMRelocation() argument
459 Value += Addend; in resolveARMRelocation()
465 << " Addend: " << format("%x", Addend) << "\n"); in resolveARMRelocation()
474 // implicit addend encoded in the target. in resolveARMRelocation()
483 // We are not expecting any other addend in the relocation address. in resolveARMRelocation()
494 // We are not expecting any other addend in the relocation address. in resolveARMRelocation()
515 // appropriate it here to act as an R_ARM_ABS32 without any addend for use in resolveARMRelocation()
516 // in the stubs created during JIT (which can't put an addend into the in resolveARMRelocation()
525 uint32_t Type, int32_t Addend) { in resolveMIPSRelocation() argument
529 Value += Addend; in resolveMIPSRelocation()
535 << " Addend: " << format("%x", Addend) << "\n"); in resolveMIPSRelocation()
560 // R_MIPS_HI16 and R_MIPS_LO16, but they do not take any addend into in resolveMIPSRelocation()
602 Rel.Addend = 0x8000; in findPPC64TOCSection()
638 int64_t Addend; in findOPDEntrySection() local
639 check(getELFRelocationAddend(*i, Addend)); in findOPDEntrySection()
654 if (Rel.Addend != (int64_t)TargetSymbolOffset) in findOPDEntrySection()
661 Rel.Addend = (intptr_t)Addend; in findOPDEntrySection()
701 uint32_t Type, int64_t Addend) { in resolvePPC64Relocation() argument
708 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC64Relocation()
711 writeInt16BE(LocalAddress, applyPPClo(Value + Addend) & ~3); in resolvePPC64Relocation()
714 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC64Relocation()
717 writeInt16BE(LocalAddress, applyPPClo(Value + Addend) & ~3); in resolvePPC64Relocation()
720 writeInt16BE(LocalAddress, applyPPChi(Value + Addend)); in resolvePPC64Relocation()
723 writeInt16BE(LocalAddress, applyPPCha(Value + Addend)); in resolvePPC64Relocation()
726 writeInt16BE(LocalAddress, applyPPChigher(Value + Addend)); in resolvePPC64Relocation()
729 writeInt16BE(LocalAddress, applyPPChighera(Value + Addend)); in resolvePPC64Relocation()
732 writeInt16BE(LocalAddress, applyPPChighest(Value + Addend)); in resolvePPC64Relocation()
735 writeInt16BE(LocalAddress, applyPPChighesta(Value + Addend)); in resolvePPC64Relocation()
738 assert(((Value + Addend) & 3) == 0); in resolvePPC64Relocation()
741 writeInt16BE(LocalAddress + 2, (aalk & 3) | ((Value + Addend) & 0xfffc)); in resolvePPC64Relocation()
745 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
750 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
755 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
759 int32_t Result = static_cast<int32_t>(Value + Addend); in resolvePPC64Relocation()
766 int32_t delta = static_cast<int32_t>(Value - FinalAddress + Addend); in resolvePPC64Relocation()
774 int32_t delta = static_cast<int32_t>(Value - FinalAddress + Addend); in resolvePPC64Relocation()
781 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
785 writeInt64BE(LocalAddress, Value + Addend); in resolvePPC64Relocation()
792 uint32_t Type, int64_t Addend) { in resolveSystemZRelocation() argument
800 int64_t Delta = (Value + Addend) - (Section.LoadAddress + Offset); in resolveSystemZRelocation()
807 int64_t Delta = (Value + Addend) - (Section.LoadAddress + Offset); in resolveSystemZRelocation()
813 int64_t Delta = (Value + Addend) - (Section.LoadAddress + Offset); in resolveSystemZRelocation()
819 writeInt64BE(LocalAddress, Value + Addend); in resolveSystemZRelocation()
841 // the symbol resides (RE.Addend provides additional information about the
847 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
853 uint32_t Type, int64_t Addend, in resolveRelocation() argument
857 resolveX86_64Relocation(Section, Offset, Value, Type, Addend, SymOffset); in resolveRelocation()
861 (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
865 resolveAArch64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
872 (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
877 Type, (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
881 resolvePPC64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
884 resolveSystemZRelocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
898 int64_t Addend; in processRelocationRef() local
899 Check(getELFRelocationAddend(*RelI, Addend)); in processRelocationRef()
906 DEBUG(dbgs() << "\t\tRelType: " << RelType << " Addend: " << Addend in processRelocationRef()
922 Value.Addend = SymInfo.getOffset() + Addend; in processRelocationRef()
936 Value.Addend = Addend; in processRelocationRef()
942 Value.Addend = Addend; in processRelocationRef()
983 ELF::R_AARCH64_MOVW_UABS_G3, Value.Addend); in processRelocationRef()
985 ELF::R_AARCH64_MOVW_UABS_G2_NC, Value.Addend); in processRelocationRef()
987 ELF::R_AARCH64_MOVW_UABS_G1_NC, Value.Addend); in processRelocationRef()
990 ELF::R_AARCH64_MOVW_UABS_G0_NC, Value.Addend); in processRelocationRef()
1028 ELF::R_ARM_PRIVATE_0, Value.Addend); in processRelocationRef()
1047 // Extract the addend from the instruction. in processRelocationRef()
1048 uint32_t Addend = ((*TargetAddress) & 0x03ffffff) << 2; in processRelocationRef() local
1050 Value.Addend += Addend; in processRelocationRef()
1067 ELF::R_MIPS_UNUSED1, Value.Addend); in processRelocationRef()
1069 ELF::R_MIPS_UNUSED2, Value.Addend); in processRelocationRef()
1106 Value.Addend += ELF::decodePPC64LocalEntryOffset(SymOther); in processRelocationRef()
1108 uint8_t *RelocTarget = Sections[Value.SectionID].Address + Value.Addend; in processRelocationRef()
1112 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1138 ELF::R_PPC64_ADDR64, Value.Addend); in processRelocationRef()
1149 ELF::R_PPC64_ADDR16_HIGHEST, Value.Addend); in processRelocationRef()
1151 ELF::R_PPC64_ADDR16_HIGHER, Value.Addend); in processRelocationRef()
1153 ELF::R_PPC64_ADDR16_HI, Value.Addend); in processRelocationRef()
1155 ELF::R_PPC64_ADDR16_LO, Value.Addend); in processRelocationRef()
1212 Value.Addend -= TOCValue.Addend; in processRelocationRef()
1213 resolveRelocation(Sections[SectionID], Offset, Value.Addend, RelType, 0); in processRelocationRef()
1216 // via a ELF::R_PPC64_TOC relocation (where both symbol and addend are in processRelocationRef()
1218 // symbols (in which case the addend is respected). in processRelocationRef()
1224 Value.Addend += Addend; in processRelocationRef()
1227 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1277 Addend); in processRelocationRef()
1279 resolveRelocation(Section, Offset, StubAddress, RelType, Addend); in processRelocationRef()
1324 // The load of the GOT address has an addend of -4 in processRelocationRef()
1334 Addend); in processRelocationRef()
1336 RelocationEntry RE(SectionID, Offset, ELF::R_X86_64_PC32, Value.Addend, in processRelocationRef()
1342 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend); in processRelocationRef()
1351 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processRelocationRef()