Lines Matching refs:Addend
262 uint32_t Type, int64_t Addend, in resolveX86_64Relocation() argument
271 Value += Addend; in resolveX86_64Relocation()
280 Value += Addend; in resolveX86_64Relocation()
291 Value + Addend; in resolveX86_64Relocation()
292 LLVM_DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveX86_64Relocation()
298 Value += Addend; in resolveX86_64Relocation()
311 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
319 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
328 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
345 int64_t GOTOffset = Value - GOTBase + Addend; in resolveX86_64Relocation()
361 Value + Addend; in resolveX86_64Relocation()
368 int64_t RealValue = Value + Addend; in resolveX86_64Relocation()
380 uint32_t Type, int32_t Addend) { in resolveX86Relocation() argument
384 Value + Addend; in resolveX86Relocation()
393 uint32_t RealOffset = Value + Addend - FinalAddress; in resolveX86Relocation()
408 uint32_t Type, int64_t Addend) { in resolveAArch64Relocation() argument
420 << format("%llx", Addend) << "\n"); in resolveAArch64Relocation()
429 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
436 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
443 write(isBE, TargetPtr, Value + Addend); in resolveAArch64Relocation()
446 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
453 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
460 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
467 write(isBE, TargetPtr, Value + Addend - FinalAddress); in resolveAArch64Relocation()
470 uint64_t BranchImm = Value + Addend - FinalAddress; in resolveAArch64Relocation()
479 uint64_t BranchImm = Value + Addend - FinalAddress; in resolveAArch64Relocation()
494 uint64_t BranchImm = Value + Addend - FinalAddress; in resolveAArch64Relocation()
502 or32le(TargetPtr, ((Value + Addend) & 0xFFFF000000000000) >> 43); in resolveAArch64Relocation()
505 or32le(TargetPtr, ((Value + Addend) & 0xFFFF00000000) >> 27); in resolveAArch64Relocation()
508 or32le(TargetPtr, ((Value + Addend) & 0xFFFF0000) >> 11); in resolveAArch64Relocation()
511 or32le(TargetPtr, ((Value + Addend) & 0xFFFF) << 5); in resolveAArch64Relocation()
516 ((Value + Addend) & ~0xfffULL) - (FinalAddress & ~0xfffULL); in resolveAArch64Relocation()
530 or32AArch64Imm(TargetPtr, Value + Addend); in resolveAArch64Relocation()
536 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 0, 11)); in resolveAArch64Relocation()
542 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 1, 11)); in resolveAArch64Relocation()
548 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 2, 11)); in resolveAArch64Relocation()
554 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 3, 11)); in resolveAArch64Relocation()
560 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 4, 11)); in resolveAArch64Relocation()
564 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
577 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
594 uint32_t Type, int32_t Addend) { in resolveARMRelocation() argument
599 Value += Addend; in resolveARMRelocation()
606 << " Addend: " << format("%x", Addend) << "\n"); in resolveARMRelocation()
700 Rel.Addend = 0x8000; in findPPC64TOCSection()
744 int64_t Addend; in findOPDEntrySection() local
746 Addend = *AddendOrErr; in findOPDEntrySection()
762 if (Rel.Addend != (int64_t)TargetSymbolOffset) in findOPDEntrySection()
778 Rel.Addend = (intptr_t)Addend; in findOPDEntrySection()
818 uint32_t Type, int64_t Addend) { in resolvePPC32Relocation() argument
825 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC32Relocation()
828 writeInt16BE(LocalAddress, applyPPChi(Value + Addend)); in resolvePPC32Relocation()
831 writeInt16BE(LocalAddress, applyPPCha(Value + Addend)); in resolvePPC32Relocation()
838 uint32_t Type, int64_t Addend) { in resolvePPC64Relocation() argument
845 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC64Relocation()
848 writeInt16BE(LocalAddress, applyPPClo(Value + Addend) & ~3); in resolvePPC64Relocation()
851 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC64Relocation()
854 writeInt16BE(LocalAddress, applyPPClo(Value + Addend) & ~3); in resolvePPC64Relocation()
858 writeInt16BE(LocalAddress, applyPPChi(Value + Addend)); in resolvePPC64Relocation()
862 writeInt16BE(LocalAddress, applyPPCha(Value + Addend)); in resolvePPC64Relocation()
865 writeInt16BE(LocalAddress, applyPPChigher(Value + Addend)); in resolvePPC64Relocation()
868 writeInt16BE(LocalAddress, applyPPChighera(Value + Addend)); in resolvePPC64Relocation()
871 writeInt16BE(LocalAddress, applyPPChighest(Value + Addend)); in resolvePPC64Relocation()
874 writeInt16BE(LocalAddress, applyPPChighesta(Value + Addend)); in resolvePPC64Relocation()
877 assert(((Value + Addend) & 3) == 0); in resolvePPC64Relocation()
880 writeInt16BE(LocalAddress + 2, (aalk & 3) | ((Value + Addend) & 0xfffc)); in resolvePPC64Relocation()
884 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
889 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
894 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
898 int64_t Result = static_cast<int64_t>(Value + Addend); in resolvePPC64Relocation()
905 int64_t delta = static_cast<int64_t>(Value - FinalAddress + Addend); in resolvePPC64Relocation()
914 int64_t delta = static_cast<int64_t>(Value - FinalAddress + Addend); in resolvePPC64Relocation()
921 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
925 writeInt64BE(LocalAddress, Value + Addend); in resolvePPC64Relocation()
932 uint32_t Type, int64_t Addend) { in resolveSystemZRelocation() argument
940 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
947 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
953 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
959 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
965 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
970 *LocalAddress = (uint8_t)(Value + Addend); in resolveSystemZRelocation()
973 writeInt16BE(LocalAddress, Value + Addend); in resolveSystemZRelocation()
976 writeInt32BE(LocalAddress, Value + Addend); in resolveSystemZRelocation()
979 writeInt64BE(LocalAddress, Value + Addend); in resolveSystemZRelocation()
986 uint32_t Type, int64_t Addend) { in resolveBPFRelocation() argument
999 write(isBE, Section.getAddressWithOffset(Offset), Value + Addend); in resolveBPFRelocation()
1000 LLVM_DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveBPFRelocation()
1005 Value += Addend; in resolveBPFRelocation()
1038 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
1044 uint32_t Type, int64_t Addend, in resolveRelocation() argument
1048 resolveX86_64Relocation(Section, Offset, Value, Type, Addend, SymOffset); in resolveRelocation()
1052 (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
1056 resolveAArch64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1063 (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
1067 resolvePPC32Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1071 resolvePPC64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1074 resolveSystemZRelocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1078 resolveBPFRelocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1090 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation()
1153 if (!isInt<28>(Address + Value.Addend - SourceAddress)) in resolveAArch64ShortBranch()
1157 Value.Addend); in resolveAArch64ShortBranch()
1187 ELF::R_AARCH64_MOVW_UABS_G3, Value.Addend); in resolveAArch64Branch()
1190 ELF::R_AARCH64_MOVW_UABS_G2_NC, Value.Addend); in resolveAArch64Branch()
1193 ELF::R_AARCH64_MOVW_UABS_G1_NC, Value.Addend); in resolveAArch64Branch()
1196 ELF::R_AARCH64_MOVW_UABS_G0_NC, Value.Addend); in resolveAArch64Branch()
1223 int64_t Addend = 0; in processRelocationRef() local
1225 Addend = *AddendOrErr; in processRelocationRef()
1238 LLVM_DEBUG(dbgs() << "\t\tRelType: " << RelType << " Addend: " << Addend in processRelocationRef()
1261 Value.Addend = SymInfo.getOffset() + Addend; in processRelocationRef()
1285 Value.Addend = Addend; in processRelocationRef()
1293 Value.Addend = Addend; in processRelocationRef()
1322 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend, in processRelocationRef()
1327 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend, in processRelocationRef()
1354 ELF::R_ARM_ABS32, Value.Addend); in processRelocationRef()
1371 Value.Addend += *Placeholder; in processRelocationRef()
1374 Value.Addend += (int16_t)((*Placeholder & 0xFFF) | (((*Placeholder >> 16) & 0xF) << 12)); in processRelocationRef()
1390 uint32_t Addend = (Opcode & 0x03ffffff) << 2; in processRelocationRef() local
1392 Value.Addend += Addend; in processRelocationRef()
1412 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1415 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1430 int64_t Addend = (Opcode & 0x0000ffff) << 16; in processRelocationRef() local
1431 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
1434 int64_t Addend = Value.Addend + SignExtend32<16>(Opcode & 0x0000ffff); in processRelocationRef() local
1441 Reloc.Addend += Addend; in processRelocationRef()
1450 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
1457 Value.Addend += Opcode; in processRelocationRef()
1459 Value.Addend += SignExtend32<18>((Opcode & 0x0000ffff) << 2); in processRelocationRef()
1461 Value.Addend += SignExtend32<21>((Opcode & 0x0007ffff) << 2); in processRelocationRef()
1463 Value.Addend += SignExtend32<23>((Opcode & 0x001fffff) << 2); in processRelocationRef()
1465 Value.Addend += SignExtend32<28>((Opcode & 0x03ffffff) << 2); in processRelocationRef()
1470 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1508 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1511 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1524 ELF::R_MIPS_HIGHEST, Value.Addend); in processRelocationRef()
1527 ELF::R_MIPS_HIGHER, Value.Addend); in processRelocationRef()
1530 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1533 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1579 Value.Addend += ELF::decodePPC64LocalEntryOffset(SymOther); in processRelocationRef()
1583 Sections[Value.SectionID].getAddressWithOffset(Value.Addend); in processRelocationRef()
1590 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1614 ELF::R_PPC64_ADDR64, Value.Addend); in processRelocationRef()
1625 ELF::R_PPC64_ADDR16_HIGHEST, Value.Addend); in processRelocationRef()
1627 ELF::R_PPC64_ADDR16_HIGHER, Value.Addend); in processRelocationRef()
1629 ELF::R_PPC64_ADDR16_HI, Value.Addend); in processRelocationRef()
1631 ELF::R_PPC64_ADDR16_LO, Value.Addend); in processRelocationRef()
1690 Value.Addend -= TOCValue.Addend; in processRelocationRef()
1691 resolveRelocation(Sections[SectionID], Offset, Value.Addend, RelType, 0); in processRelocationRef()
1704 Value.Addend += Addend; in processRelocationRef()
1707 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1756 Addend); in processRelocationRef()
1758 resolveRelocation(Section, Offset, StubAddress, RelType, Addend); in processRelocationRef()
1818 Addend); in processRelocationRef()
1820 Value.Addend += support::ulittle32_t::ref( in processRelocationRef()
1828 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend, in processRelocationRef()
1856 resolveGOTOffsetRelocation(SectionID, Offset, Addend, ELF::R_X86_64_PC32); in processRelocationRef()
1859 resolveGOTOffsetRelocation(SectionID, Offset, Addend, ELF::R_X86_64_PC64); in processRelocationRef()
1865 Value.Addend += support::ulittle32_t::ref(computePlaceholderAddress(SectionID, Offset)); in processRelocationRef()
1868 Value.Addend += support::ulittle64_t::ref(computePlaceholderAddress(SectionID, Offset)); in processRelocationRef()
1871 processX86_64GOTTPOFFRelocation(SectionID, Offset, Value, Addend); in processRelocationRef()
1877 processX86_64TLSRelocation(SectionID, Offset, RelType, Value, Addend, in processRelocationRef()
1884 Value.Addend += support::ulittle32_t::ref(computePlaceholderAddress(SectionID, Offset)); in processRelocationRef()
1894 int64_t Addend) { in processX86_64GOTTPOFFRelocation() argument
1983 ELF::R_X86_64_TPOFF32, Value.Addend - Addend); in processX86_64GOTTPOFFRelocation()
1999 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend, in processX86_64GOTTPOFFRelocation()
2012 RelocationValueRef Value, int64_t Addend, in processX86_64TLSRelocation() argument
2124 ELF::R_X86_64_TPOFF32, Value.Addend - Addend); in processX86_64TLSRelocation()