Lines Matching refs:Addend

265                                              uint32_t Type, int64_t Addend,  in resolveX86_64Relocation()  argument
275 Value + Addend; in resolveX86_64Relocation()
276 LLVM_DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveX86_64Relocation()
282 Value += Addend; in resolveX86_64Relocation()
295 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
303 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
312 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
329 int64_t GOTOffset = Value - GOTBase + Addend; in resolveX86_64Relocation()
338 uint32_t Type, int32_t Addend) { in resolveX86Relocation() argument
342 Value + Addend; in resolveX86Relocation()
351 uint32_t RealOffset = Value + Addend - FinalAddress; in resolveX86Relocation()
366 uint32_t Type, int64_t Addend) { in resolveAArch64Relocation() argument
378 << format("%llx", Addend) << "\n"); in resolveAArch64Relocation()
385 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
391 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
397 write(isBE, TargetPtr, Value + Addend); in resolveAArch64Relocation()
400 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
407 write(isBE, TargetPtr, Value + Addend - FinalAddress); in resolveAArch64Relocation()
413 uint64_t BranchImm = Value + Addend - FinalAddress; in resolveAArch64Relocation()
421 or32le(TargetPtr, ((Value + Addend) & 0xFFFF000000000000) >> 43); in resolveAArch64Relocation()
424 or32le(TargetPtr, ((Value + Addend) & 0xFFFF00000000) >> 27); in resolveAArch64Relocation()
427 or32le(TargetPtr, ((Value + Addend) & 0xFFFF0000) >> 11); in resolveAArch64Relocation()
430 or32le(TargetPtr, ((Value + Addend) & 0xFFFF) << 5); in resolveAArch64Relocation()
435 ((Value + Addend) & ~0xfffULL) - (FinalAddress & ~0xfffULL); in resolveAArch64Relocation()
449 or32AArch64Imm(TargetPtr, Value + Addend); in resolveAArch64Relocation()
455 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 0, 11)); in resolveAArch64Relocation()
461 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 1, 11)); in resolveAArch64Relocation()
467 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 2, 11)); in resolveAArch64Relocation()
473 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 3, 11)); in resolveAArch64Relocation()
479 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 4, 11)); in resolveAArch64Relocation()
486 uint32_t Type, int32_t Addend) { in resolveARMRelocation() argument
491 Value += Addend; in resolveARMRelocation()
498 << " Addend: " << format("%x", Addend) << "\n"); in resolveARMRelocation()
591 Rel.Addend = 0x8000; in findPPC64TOCSection()
629 int64_t Addend; in findOPDEntrySection() local
631 Addend = *AddendOrErr; in findOPDEntrySection()
647 if (Rel.Addend != (int64_t)TargetSymbolOffset) in findOPDEntrySection()
663 Rel.Addend = (intptr_t)Addend; in findOPDEntrySection()
703 uint32_t Type, int64_t Addend) { in resolvePPC32Relocation() argument
710 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC32Relocation()
713 writeInt16BE(LocalAddress, applyPPChi(Value + Addend)); in resolvePPC32Relocation()
716 writeInt16BE(LocalAddress, applyPPCha(Value + Addend)); in resolvePPC32Relocation()
723 uint32_t Type, int64_t Addend) { in resolvePPC64Relocation() argument
730 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC64Relocation()
733 writeInt16BE(LocalAddress, applyPPClo(Value + Addend) & ~3); in resolvePPC64Relocation()
736 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC64Relocation()
739 writeInt16BE(LocalAddress, applyPPClo(Value + Addend) & ~3); in resolvePPC64Relocation()
743 writeInt16BE(LocalAddress, applyPPChi(Value + Addend)); in resolvePPC64Relocation()
747 writeInt16BE(LocalAddress, applyPPCha(Value + Addend)); in resolvePPC64Relocation()
750 writeInt16BE(LocalAddress, applyPPChigher(Value + Addend)); in resolvePPC64Relocation()
753 writeInt16BE(LocalAddress, applyPPChighera(Value + Addend)); in resolvePPC64Relocation()
756 writeInt16BE(LocalAddress, applyPPChighest(Value + Addend)); in resolvePPC64Relocation()
759 writeInt16BE(LocalAddress, applyPPChighesta(Value + Addend)); in resolvePPC64Relocation()
762 assert(((Value + Addend) & 3) == 0); in resolvePPC64Relocation()
765 writeInt16BE(LocalAddress + 2, (aalk & 3) | ((Value + Addend) & 0xfffc)); in resolvePPC64Relocation()
769 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
774 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
779 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
783 int64_t Result = static_cast<int64_t>(Value + Addend); in resolvePPC64Relocation()
790 int64_t delta = static_cast<int64_t>(Value - FinalAddress + Addend); in resolvePPC64Relocation()
799 int64_t delta = static_cast<int64_t>(Value - FinalAddress + Addend); in resolvePPC64Relocation()
806 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
810 writeInt64BE(LocalAddress, Value + Addend); in resolvePPC64Relocation()
817 uint32_t Type, int64_t Addend) { in resolveSystemZRelocation() argument
825 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
832 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
838 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
844 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
850 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
855 *LocalAddress = (uint8_t)(Value + Addend); in resolveSystemZRelocation()
858 writeInt16BE(LocalAddress, Value + Addend); in resolveSystemZRelocation()
861 writeInt32BE(LocalAddress, Value + Addend); in resolveSystemZRelocation()
864 writeInt64BE(LocalAddress, Value + Addend); in resolveSystemZRelocation()
871 uint32_t Type, int64_t Addend) { in resolveBPFRelocation() argument
881 write(isBE, Section.getAddressWithOffset(Offset), Value + Addend); in resolveBPFRelocation()
882 LLVM_DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveBPFRelocation()
887 Value += Addend; in resolveBPFRelocation()
920 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
926 uint32_t Type, int64_t Addend, in resolveRelocation() argument
930 resolveX86_64Relocation(Section, Offset, Value, Type, Addend, SymOffset); in resolveRelocation()
934 (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
938 resolveAArch64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
945 (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
948 resolvePPC32Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
952 resolvePPC64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
955 resolveSystemZRelocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
959 resolveBPFRelocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
971 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation()
1034 if (!isInt<28>(Address + Value.Addend - SourceAddress)) in resolveAArch64ShortBranch()
1038 Value.Addend); in resolveAArch64ShortBranch()
1068 ELF::R_AARCH64_MOVW_UABS_G3, Value.Addend); in resolveAArch64Branch()
1071 ELF::R_AARCH64_MOVW_UABS_G2_NC, Value.Addend); in resolveAArch64Branch()
1074 ELF::R_AARCH64_MOVW_UABS_G1_NC, Value.Addend); in resolveAArch64Branch()
1077 ELF::R_AARCH64_MOVW_UABS_G0_NC, Value.Addend); in resolveAArch64Branch()
1104 int64_t Addend = 0; in processRelocationRef() local
1106 Addend = *AddendOrErr; in processRelocationRef()
1119 LLVM_DEBUG(dbgs() << "\t\tRelType: " << RelType << " Addend: " << Addend in processRelocationRef()
1143 Value.Addend = SymInfo.getOffset() + Addend; in processRelocationRef()
1168 Value.Addend = Addend; in processRelocationRef()
1175 Value.Addend = Addend; in processRelocationRef()
1202 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend, in processRelocationRef()
1207 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend, in processRelocationRef()
1234 ELF::R_ARM_ABS32, Value.Addend); in processRelocationRef()
1251 Value.Addend += *Placeholder; in processRelocationRef()
1254 Value.Addend += (int16_t)((*Placeholder & 0xFFF) | (((*Placeholder >> 16) & 0xF) << 12)); in processRelocationRef()
1270 uint32_t Addend = (Opcode & 0x03ffffff) << 2; in processRelocationRef() local
1272 Value.Addend += Addend; in processRelocationRef()
1292 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1295 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1310 int64_t Addend = (Opcode & 0x0000ffff) << 16; in processRelocationRef() local
1311 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
1314 int64_t Addend = Value.Addend + SignExtend32<16>(Opcode & 0x0000ffff); in processRelocationRef() local
1321 Reloc.Addend += Addend; in processRelocationRef()
1330 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
1337 Value.Addend += Opcode; in processRelocationRef()
1339 Value.Addend += SignExtend32<18>((Opcode & 0x0000ffff) << 2); in processRelocationRef()
1341 Value.Addend += SignExtend32<21>((Opcode & 0x0007ffff) << 2); in processRelocationRef()
1343 Value.Addend += SignExtend32<23>((Opcode & 0x001fffff) << 2); in processRelocationRef()
1345 Value.Addend += SignExtend32<28>((Opcode & 0x03ffffff) << 2); in processRelocationRef()
1350 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1388 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1391 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1404 ELF::R_MIPS_HIGHEST, Value.Addend); in processRelocationRef()
1407 ELF::R_MIPS_HIGHER, Value.Addend); in processRelocationRef()
1410 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1413 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1459 Value.Addend += ELF::decodePPC64LocalEntryOffset(SymOther); in processRelocationRef()
1463 Sections[Value.SectionID].getAddressWithOffset(Value.Addend); in processRelocationRef()
1470 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1494 ELF::R_PPC64_ADDR64, Value.Addend); in processRelocationRef()
1505 ELF::R_PPC64_ADDR16_HIGHEST, Value.Addend); in processRelocationRef()
1507 ELF::R_PPC64_ADDR16_HIGHER, Value.Addend); in processRelocationRef()
1509 ELF::R_PPC64_ADDR16_HI, Value.Addend); in processRelocationRef()
1511 ELF::R_PPC64_ADDR16_LO, Value.Addend); in processRelocationRef()
1570 Value.Addend -= TOCValue.Addend; in processRelocationRef()
1571 resolveRelocation(Sections[SectionID], Offset, Value.Addend, RelType, 0); in processRelocationRef()
1584 Value.Addend += Addend; in processRelocationRef()
1587 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1638 Addend); in processRelocationRef()
1640 resolveRelocation(Section, Offset, StubAddress, RelType, Addend); in processRelocationRef()
1699 Addend); in processRelocationRef()
1701 RelocationEntry RE(SectionID, Offset, ELF::R_X86_64_PC32, Value.Addend, in processRelocationRef()
1709 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend, in processRelocationRef()
1737 resolveGOTOffsetRelocation(SectionID, Offset, Addend, ELF::R_X86_64_PC64); in processRelocationRef()
1743 Value.Addend += support::ulittle32_t::ref(computePlaceholderAddress(SectionID, Offset)); in processRelocationRef()
1746 Value.Addend += support::ulittle64_t::ref(computePlaceholderAddress(SectionID, Offset)); in processRelocationRef()
1753 Value.Addend += support::ulittle32_t::ref(computePlaceholderAddress(SectionID, Offset)); in processRelocationRef()