• Home
  • Raw
  • Download

Lines Matching full:addend

259                                              uint32_t Type, int64_t Addend,  in resolveX86_64Relocation()  argument
267 *Target = Value + Addend; in resolveX86_64Relocation()
268 DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveX86_64Relocation()
274 Value += Addend; in resolveX86_64Relocation()
291 // The processRelocationRef method combines the symbol offset and the addend in resolveX86_64Relocation()
293 // the raw addend, so we subtract the symbol offset to get it. in resolveX86_64Relocation()
294 int64_t RealOffset = GOTAddr + Addend - SymOffset - FinalAddress; in resolveX86_64Relocation()
307 int64_t RealOffset = *Placeholder + Value + Addend - FinalAddress; in resolveX86_64Relocation()
320 *Target = *Placeholder + Value + Addend - FinalAddress; in resolveX86_64Relocation()
328 uint32_t Type, int32_t Addend) { in resolveX86Relocation() argument
336 *Target = *Placeholder + Value + Addend; in resolveX86Relocation()
346 uint32_t RealOffset = *Placeholder + Value + Addend - FinalAddress; in resolveX86Relocation()
360 uint32_t Type, int64_t Addend) { in resolveAArch64Relocation() argument
368 << format("%x", Type) << " Addend: 0x" << format("%llx", Addend) in resolveAArch64Relocation()
378 *TargetPtr = Value + Addend; in resolveAArch64Relocation()
382 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
392 uint64_t BranchImm = Value + Addend - FinalAddress; in resolveAArch64Relocation()
406 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
418 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
430 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
442 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
456 ((Value + Addend) & ~0xfffULL) - (FinalAddress & ~0xfffULL); in resolveAArch64Relocation()
474 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
486 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
501 uint32_t Type, int32_t Addend) { in resolveARMRelocation() argument
507 Value += Addend; in resolveARMRelocation()
513 << " Addend: " << format("%x", Addend) << "\n"); in resolveARMRelocation()
522 // implicit addend encoded in the target. in resolveARMRelocation()
531 // We are not expecting any other addend in the relocation address. in resolveARMRelocation()
542 // We are not expecting any other addend in the relocation address. in resolveARMRelocation()
563 // appropriate it here to act as an R_ARM_ABS32 without any addend for use in resolveARMRelocation()
564 // in the stubs created during JIT (which can't put an addend into the in resolveARMRelocation()
573 uint32_t Type, int32_t Addend) { in resolveMIPSRelocation() argument
577 Value += Addend; in resolveMIPSRelocation()
583 << " Addend: " << format("%x", Addend) << "\n"); in resolveMIPSRelocation()
608 // R_MIPS_HI16 and R_MIPS_LO16, but they do not take any addend into in resolveMIPSRelocation()
650 Rel.Addend = 0x8000; in findPPC64TOCSection()
686 int64_t Addend; in findOPDEntrySection() local
687 check(getELFRelocationAddend(*i, Addend)); in findOPDEntrySection()
702 if (Rel.Addend != (int64_t)TargetSymbolOffset) in findOPDEntrySection()
710 Rel.Addend = (intptr_t)Addend; in findOPDEntrySection()
750 uint32_t Type, int64_t Addend) { in resolvePPC64Relocation() argument
757 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC64Relocation()
760 writeInt16BE(LocalAddress, applyPPClo(Value + Addend) & ~3); in resolvePPC64Relocation()
763 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC64Relocation()
766 writeInt16BE(LocalAddress, applyPPClo(Value + Addend) & ~3); in resolvePPC64Relocation()
769 writeInt16BE(LocalAddress, applyPPChi(Value + Addend)); in resolvePPC64Relocation()
772 writeInt16BE(LocalAddress, applyPPCha(Value + Addend)); in resolvePPC64Relocation()
775 writeInt16BE(LocalAddress, applyPPChigher(Value + Addend)); in resolvePPC64Relocation()
778 writeInt16BE(LocalAddress, applyPPChighera(Value + Addend)); in resolvePPC64Relocation()
781 writeInt16BE(LocalAddress, applyPPChighest(Value + Addend)); in resolvePPC64Relocation()
784 writeInt16BE(LocalAddress, applyPPChighesta(Value + Addend)); in resolvePPC64Relocation()
787 assert(((Value + Addend) & 3) == 0); in resolvePPC64Relocation()
790 writeInt16BE(LocalAddress + 2, (aalk & 3) | ((Value + Addend) & 0xfffc)); in resolvePPC64Relocation()
794 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
799 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
804 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
808 int32_t Result = static_cast<int32_t>(Value + Addend); in resolvePPC64Relocation()
815 int32_t delta = static_cast<int32_t>(Value - FinalAddress + Addend); in resolvePPC64Relocation()
823 int32_t delta = static_cast<int32_t>(Value - FinalAddress + Addend); in resolvePPC64Relocation()
830 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
834 writeInt64BE(LocalAddress, Value + Addend); in resolvePPC64Relocation()
841 uint32_t Type, int64_t Addend) { in resolveSystemZRelocation() argument
849 int64_t Delta = (Value + Addend) - (Section.LoadAddress + Offset); in resolveSystemZRelocation()
856 int64_t Delta = (Value + Addend) - (Section.LoadAddress + Offset); in resolveSystemZRelocation()
862 int64_t Delta = (Value + Addend) - (Section.LoadAddress + Offset); in resolveSystemZRelocation()
868 writeInt64BE(LocalAddress, Value + Addend); in resolveSystemZRelocation()
890 // the symbol resides (RE.Addend provides additional information about the
896 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
902 uint32_t Type, int64_t Addend, in resolveRelocation() argument
906 resolveX86_64Relocation(Section, Offset, Value, Type, Addend, SymOffset); in resolveRelocation()
910 (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
916 resolveAArch64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
923 (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
928 Type, (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
932 resolvePPC64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
935 resolveSystemZRelocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
948 int64_t Addend; in processRelocationRef() local
949 Check(getELFRelocationAddend(*RelI, Addend)); in processRelocationRef()
956 DEBUG(dbgs() << "\t\tRelType: " << RelType << " Addend: " << Addend in processRelocationRef()
969 Value.Addend = lsi->second.second + Addend; in processRelocationRef()
978 Value.Addend = gsi->second.second + Addend; in processRelocationRef()
994 Value.Addend = Addend; in processRelocationRef()
1000 Value.Addend = Addend; in processRelocationRef()
1042 ELF::R_AARCH64_MOVW_UABS_G3, Value.Addend); in processRelocationRef()
1044 ELF::R_AARCH64_MOVW_UABS_G2_NC, Value.Addend); in processRelocationRef()
1046 ELF::R_AARCH64_MOVW_UABS_G1_NC, Value.Addend); in processRelocationRef()
1049 ELF::R_AARCH64_MOVW_UABS_G0_NC, Value.Addend); in processRelocationRef()
1087 ELF::R_ARM_PRIVATE_0, Value.Addend); in processRelocationRef()
1106 // Extract the addend from the instruction. in processRelocationRef()
1107 uint32_t Addend = ((*TargetAddress) & 0x03ffffff) << 2; in processRelocationRef() local
1109 Value.Addend += Addend; in processRelocationRef()
1126 ELF::R_MIPS_UNUSED1, Value.Addend); in processRelocationRef()
1128 ELF::R_MIPS_UNUSED2, Value.Addend); in processRelocationRef()
1155 uint8_t *RelocTarget = Sections[Value.SectionID].Address + Value.Addend; in processRelocationRef()
1159 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1184 ELF::R_PPC64_ADDR64, Value.Addend); in processRelocationRef()
1195 ELF::R_PPC64_ADDR16_HIGHEST, Value.Addend); in processRelocationRef()
1197 ELF::R_PPC64_ADDR16_HIGHER, Value.Addend); in processRelocationRef()
1199 ELF::R_PPC64_ADDR16_HI, Value.Addend); in processRelocationRef()
1201 ELF::R_PPC64_ADDR16_LO, Value.Addend); in processRelocationRef()
1254 Value.Addend -= TOCValue.Addend; in processRelocationRef()
1255 resolveRelocation(Sections[SectionID], Offset, Value.Addend, RelType, 0); in processRelocationRef()
1258 // via a ELF::R_PPC64_TOC relocation (where both symbol and addend are in processRelocationRef()
1260 // symbols (in which case the addend is respected). in processRelocationRef()
1266 Value.Addend += Addend; in processRelocationRef()
1269 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1309 Value.Addend - Addend); in processRelocationRef()
1319 Addend); in processRelocationRef()
1321 resolveRelocation(Section, Offset, StubAddress, RelType, Addend); in processRelocationRef()
1374 Addend); in processRelocationRef()
1376 RelocationEntry RE(SectionID, Offset, ELF::R_X86_64_PC32, Value.Addend, in processRelocationRef()
1384 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processRelocationRef()
1461 // GOT entries for external symbols use the addend as the address when in findGOTEntry()
1465 // Don't use the Addend here. The relocation handler will use it. in findGOTEntry()