Lines Matching refs:Addend

261                                              uint32_t Type, int64_t Addend,  in resolveX86_64Relocation()  argument
270 Value += Addend; in resolveX86_64Relocation()
279 Value += Addend; in resolveX86_64Relocation()
290 Value + Addend; in resolveX86_64Relocation()
291 LLVM_DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveX86_64Relocation()
297 Value += Addend; in resolveX86_64Relocation()
310 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
318 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
327 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
344 int64_t GOTOffset = Value - GOTBase + Addend; in resolveX86_64Relocation()
360 Value + Addend; in resolveX86_64Relocation()
367 int64_t RealValue = Value + Addend; in resolveX86_64Relocation()
379 uint32_t Type, int32_t Addend) { in resolveX86Relocation() argument
383 Value + Addend; in resolveX86Relocation()
392 uint32_t RealOffset = Value + Addend - FinalAddress; in resolveX86Relocation()
407 uint32_t Type, int64_t Addend) { in resolveAArch64Relocation() argument
419 << format("%llx", Addend) << "\n"); in resolveAArch64Relocation()
428 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
434 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
440 write(isBE, TargetPtr, Value + Addend); in resolveAArch64Relocation()
443 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
450 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
457 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
464 write(isBE, TargetPtr, Value + Addend - FinalAddress); in resolveAArch64Relocation()
467 uint64_t BranchImm = Value + Addend - FinalAddress; in resolveAArch64Relocation()
476 uint64_t BranchImm = Value + Addend - FinalAddress; in resolveAArch64Relocation()
489 uint64_t BranchImm = Value + Addend - FinalAddress; in resolveAArch64Relocation()
497 or32le(TargetPtr, ((Value + Addend) & 0xFFFF000000000000) >> 43); in resolveAArch64Relocation()
500 or32le(TargetPtr, ((Value + Addend) & 0xFFFF00000000) >> 27); in resolveAArch64Relocation()
503 or32le(TargetPtr, ((Value + Addend) & 0xFFFF0000) >> 11); in resolveAArch64Relocation()
506 or32le(TargetPtr, ((Value + Addend) & 0xFFFF) << 5); in resolveAArch64Relocation()
511 ((Value + Addend) & ~0xfffULL) - (FinalAddress & ~0xfffULL); in resolveAArch64Relocation()
525 or32AArch64Imm(TargetPtr, Value + Addend); in resolveAArch64Relocation()
531 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 0, 11)); in resolveAArch64Relocation()
537 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 1, 11)); in resolveAArch64Relocation()
543 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 2, 11)); in resolveAArch64Relocation()
549 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 3, 11)); in resolveAArch64Relocation()
555 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 4, 11)); in resolveAArch64Relocation()
559 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
572 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
589 uint32_t Type, int32_t Addend) { in resolveARMRelocation() argument
594 Value += Addend; in resolveARMRelocation()
601 << " Addend: " << format("%x", Addend) << "\n"); in resolveARMRelocation()
695 Rel.Addend = 0x8000; in findPPC64TOCSection()
739 int64_t Addend; in findOPDEntrySection() local
741 Addend = *AddendOrErr; in findOPDEntrySection()
757 if (Rel.Addend != (int64_t)TargetSymbolOffset) in findOPDEntrySection()
773 Rel.Addend = (intptr_t)Addend; in findOPDEntrySection()
813 uint32_t Type, int64_t Addend) { in resolvePPC32Relocation() argument
820 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC32Relocation()
823 writeInt16BE(LocalAddress, applyPPChi(Value + Addend)); in resolvePPC32Relocation()
826 writeInt16BE(LocalAddress, applyPPCha(Value + Addend)); in resolvePPC32Relocation()
833 uint32_t Type, int64_t Addend) { in resolvePPC64Relocation() argument
840 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC64Relocation()
843 writeInt16BE(LocalAddress, applyPPClo(Value + Addend) & ~3); in resolvePPC64Relocation()
846 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC64Relocation()
849 writeInt16BE(LocalAddress, applyPPClo(Value + Addend) & ~3); in resolvePPC64Relocation()
853 writeInt16BE(LocalAddress, applyPPChi(Value + Addend)); in resolvePPC64Relocation()
857 writeInt16BE(LocalAddress, applyPPCha(Value + Addend)); in resolvePPC64Relocation()
860 writeInt16BE(LocalAddress, applyPPChigher(Value + Addend)); in resolvePPC64Relocation()
863 writeInt16BE(LocalAddress, applyPPChighera(Value + Addend)); in resolvePPC64Relocation()
866 writeInt16BE(LocalAddress, applyPPChighest(Value + Addend)); in resolvePPC64Relocation()
869 writeInt16BE(LocalAddress, applyPPChighesta(Value + Addend)); in resolvePPC64Relocation()
872 assert(((Value + Addend) & 3) == 0); in resolvePPC64Relocation()
875 writeInt16BE(LocalAddress + 2, (aalk & 3) | ((Value + Addend) & 0xfffc)); in resolvePPC64Relocation()
879 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
884 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
889 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
893 int64_t Result = static_cast<int64_t>(Value + Addend); in resolvePPC64Relocation()
900 int64_t delta = static_cast<int64_t>(Value - FinalAddress + Addend); in resolvePPC64Relocation()
909 int64_t delta = static_cast<int64_t>(Value - FinalAddress + Addend); in resolvePPC64Relocation()
916 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
920 writeInt64BE(LocalAddress, Value + Addend); in resolvePPC64Relocation()
927 uint32_t Type, int64_t Addend) { in resolveSystemZRelocation() argument
935 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
942 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
948 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
954 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
960 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
965 *LocalAddress = (uint8_t)(Value + Addend); in resolveSystemZRelocation()
968 writeInt16BE(LocalAddress, Value + Addend); in resolveSystemZRelocation()
971 writeInt32BE(LocalAddress, Value + Addend); in resolveSystemZRelocation()
974 writeInt64BE(LocalAddress, Value + Addend); in resolveSystemZRelocation()
981 uint32_t Type, int64_t Addend) { in resolveBPFRelocation() argument
994 write(isBE, Section.getAddressWithOffset(Offset), Value + Addend); in resolveBPFRelocation()
995 LLVM_DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveBPFRelocation()
1000 Value += Addend; in resolveBPFRelocation()
1033 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
1039 uint32_t Type, int64_t Addend, in resolveRelocation() argument
1043 resolveX86_64Relocation(Section, Offset, Value, Type, Addend, SymOffset); in resolveRelocation()
1047 (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
1051 resolveAArch64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1058 (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
1062 resolvePPC32Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1066 resolvePPC64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1069 resolveSystemZRelocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1073 resolveBPFRelocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1085 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation()
1148 if (!isInt<28>(Address + Value.Addend - SourceAddress)) in resolveAArch64ShortBranch()
1152 Value.Addend); in resolveAArch64ShortBranch()
1182 ELF::R_AARCH64_MOVW_UABS_G3, Value.Addend); in resolveAArch64Branch()
1185 ELF::R_AARCH64_MOVW_UABS_G2_NC, Value.Addend); in resolveAArch64Branch()
1188 ELF::R_AARCH64_MOVW_UABS_G1_NC, Value.Addend); in resolveAArch64Branch()
1191 ELF::R_AARCH64_MOVW_UABS_G0_NC, Value.Addend); in resolveAArch64Branch()
1218 int64_t Addend = 0; in processRelocationRef() local
1220 Addend = *AddendOrErr; in processRelocationRef()
1233 LLVM_DEBUG(dbgs() << "\t\tRelType: " << RelType << " Addend: " << Addend in processRelocationRef()
1256 Value.Addend = SymInfo.getOffset() + Addend; in processRelocationRef()
1280 Value.Addend = Addend; in processRelocationRef()
1287 Value.Addend = Addend; in processRelocationRef()
1316 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend, in processRelocationRef()
1321 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend, in processRelocationRef()
1348 ELF::R_ARM_ABS32, Value.Addend); in processRelocationRef()
1365 Value.Addend += *Placeholder; in processRelocationRef()
1368 Value.Addend += (int16_t)((*Placeholder & 0xFFF) | (((*Placeholder >> 16) & 0xF) << 12)); in processRelocationRef()
1384 uint32_t Addend = (Opcode & 0x03ffffff) << 2; in processRelocationRef() local
1386 Value.Addend += Addend; in processRelocationRef()
1406 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1409 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1424 int64_t Addend = (Opcode & 0x0000ffff) << 16; in processRelocationRef() local
1425 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
1428 int64_t Addend = Value.Addend + SignExtend32<16>(Opcode & 0x0000ffff); in processRelocationRef() local
1435 Reloc.Addend += Addend; in processRelocationRef()
1444 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
1451 Value.Addend += Opcode; in processRelocationRef()
1453 Value.Addend += SignExtend32<18>((Opcode & 0x0000ffff) << 2); in processRelocationRef()
1455 Value.Addend += SignExtend32<21>((Opcode & 0x0007ffff) << 2); in processRelocationRef()
1457 Value.Addend += SignExtend32<23>((Opcode & 0x001fffff) << 2); in processRelocationRef()
1459 Value.Addend += SignExtend32<28>((Opcode & 0x03ffffff) << 2); in processRelocationRef()
1464 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1502 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1505 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1518 ELF::R_MIPS_HIGHEST, Value.Addend); in processRelocationRef()
1521 ELF::R_MIPS_HIGHER, Value.Addend); in processRelocationRef()
1524 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1527 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1573 Value.Addend += ELF::decodePPC64LocalEntryOffset(SymOther); in processRelocationRef()
1577 Sections[Value.SectionID].getAddressWithOffset(Value.Addend); in processRelocationRef()
1584 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1608 ELF::R_PPC64_ADDR64, Value.Addend); in processRelocationRef()
1619 ELF::R_PPC64_ADDR16_HIGHEST, Value.Addend); in processRelocationRef()
1621 ELF::R_PPC64_ADDR16_HIGHER, Value.Addend); in processRelocationRef()
1623 ELF::R_PPC64_ADDR16_HI, Value.Addend); in processRelocationRef()
1625 ELF::R_PPC64_ADDR16_LO, Value.Addend); in processRelocationRef()
1684 Value.Addend -= TOCValue.Addend; in processRelocationRef()
1685 resolveRelocation(Sections[SectionID], Offset, Value.Addend, RelType, 0); in processRelocationRef()
1698 Value.Addend += Addend; in processRelocationRef()
1701 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1752 Addend); in processRelocationRef()
1754 resolveRelocation(Section, Offset, StubAddress, RelType, Addend); in processRelocationRef()
1816 Addend); in processRelocationRef()
1818 Value.Addend += support::ulittle32_t::ref( in processRelocationRef()
1826 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend, in processRelocationRef()
1854 resolveGOTOffsetRelocation(SectionID, Offset, Addend, ELF::R_X86_64_PC32); in processRelocationRef()
1857 resolveGOTOffsetRelocation(SectionID, Offset, Addend, ELF::R_X86_64_PC64); in processRelocationRef()
1863 Value.Addend += support::ulittle32_t::ref(computePlaceholderAddress(SectionID, Offset)); in processRelocationRef()
1866 Value.Addend += support::ulittle64_t::ref(computePlaceholderAddress(SectionID, Offset)); in processRelocationRef()
1869 processX86_64GOTTPOFFRelocation(SectionID, Offset, Value, Addend); in processRelocationRef()
1875 processX86_64TLSRelocation(SectionID, Offset, RelType, Value, Addend, in processRelocationRef()
1882 Value.Addend += support::ulittle32_t::ref(computePlaceholderAddress(SectionID, Offset)); in processRelocationRef()
1892 int64_t Addend) { in processX86_64GOTTPOFFRelocation() argument
1981 ELF::R_X86_64_TPOFF32, Value.Addend - Addend); in processX86_64GOTTPOFFRelocation()
1997 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend, in processX86_64GOTTPOFFRelocation()
2010 RelocationValueRef Value, int64_t Addend, in processX86_64TLSRelocation() argument
2122 ELF::R_X86_64_TPOFF32, Value.Addend - Addend); in processX86_64TLSRelocation()