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()
353 uint32_t Type, int32_t Addend) { in resolveX86Relocation() argument
357 Value + Addend; in resolveX86Relocation()
366 uint32_t RealOffset = Value + Addend - FinalAddress; in resolveX86Relocation()
381 uint32_t Type, int64_t Addend) { in resolveAArch64Relocation() argument
393 << format("%llx", Addend) << "\n"); in resolveAArch64Relocation()
400 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
406 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
412 write(isBE, TargetPtr, Value + Addend); in resolveAArch64Relocation()
415 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
422 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
429 write(isBE, TargetPtr, Value + Addend - FinalAddress); in resolveAArch64Relocation()
432 uint64_t BranchImm = Value + Addend - FinalAddress; in resolveAArch64Relocation()
441 uint64_t BranchImm = Value + Addend - FinalAddress; in resolveAArch64Relocation()
454 uint64_t BranchImm = Value + Addend - FinalAddress; in resolveAArch64Relocation()
462 or32le(TargetPtr, ((Value + Addend) & 0xFFFF000000000000) >> 43); in resolveAArch64Relocation()
465 or32le(TargetPtr, ((Value + Addend) & 0xFFFF00000000) >> 27); in resolveAArch64Relocation()
468 or32le(TargetPtr, ((Value + Addend) & 0xFFFF0000) >> 11); in resolveAArch64Relocation()
471 or32le(TargetPtr, ((Value + Addend) & 0xFFFF) << 5); in resolveAArch64Relocation()
476 ((Value + Addend) & ~0xfffULL) - (FinalAddress & ~0xfffULL); in resolveAArch64Relocation()
490 or32AArch64Imm(TargetPtr, Value + Addend); in resolveAArch64Relocation()
496 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 0, 11)); in resolveAArch64Relocation()
502 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 1, 11)); in resolveAArch64Relocation()
508 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 2, 11)); in resolveAArch64Relocation()
514 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 3, 11)); in resolveAArch64Relocation()
520 or32AArch64Imm(TargetPtr, getBits(Value + Addend, 4, 11)); in resolveAArch64Relocation()
524 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
537 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
554 uint32_t Type, int32_t Addend) { in resolveARMRelocation() argument
559 Value += Addend; in resolveARMRelocation()
566 << " Addend: " << format("%x", Addend) << "\n"); in resolveARMRelocation()
660 Rel.Addend = 0x8000; in findPPC64TOCSection()
704 int64_t Addend; in findOPDEntrySection() local
706 Addend = *AddendOrErr; in findOPDEntrySection()
722 if (Rel.Addend != (int64_t)TargetSymbolOffset) in findOPDEntrySection()
738 Rel.Addend = (intptr_t)Addend; in findOPDEntrySection()
778 uint32_t Type, int64_t Addend) { in resolvePPC32Relocation() argument
785 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC32Relocation()
788 writeInt16BE(LocalAddress, applyPPChi(Value + Addend)); in resolvePPC32Relocation()
791 writeInt16BE(LocalAddress, applyPPCha(Value + Addend)); in resolvePPC32Relocation()
798 uint32_t Type, int64_t Addend) { in resolvePPC64Relocation() argument
805 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC64Relocation()
808 writeInt16BE(LocalAddress, applyPPClo(Value + Addend) & ~3); in resolvePPC64Relocation()
811 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC64Relocation()
814 writeInt16BE(LocalAddress, applyPPClo(Value + Addend) & ~3); in resolvePPC64Relocation()
818 writeInt16BE(LocalAddress, applyPPChi(Value + Addend)); in resolvePPC64Relocation()
822 writeInt16BE(LocalAddress, applyPPCha(Value + Addend)); in resolvePPC64Relocation()
825 writeInt16BE(LocalAddress, applyPPChigher(Value + Addend)); in resolvePPC64Relocation()
828 writeInt16BE(LocalAddress, applyPPChighera(Value + Addend)); in resolvePPC64Relocation()
831 writeInt16BE(LocalAddress, applyPPChighest(Value + Addend)); in resolvePPC64Relocation()
834 writeInt16BE(LocalAddress, applyPPChighesta(Value + Addend)); in resolvePPC64Relocation()
837 assert(((Value + Addend) & 3) == 0); in resolvePPC64Relocation()
840 writeInt16BE(LocalAddress + 2, (aalk & 3) | ((Value + Addend) & 0xfffc)); in resolvePPC64Relocation()
844 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
849 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
854 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
858 int64_t Result = static_cast<int64_t>(Value + Addend); in resolvePPC64Relocation()
865 int64_t delta = static_cast<int64_t>(Value - FinalAddress + Addend); in resolvePPC64Relocation()
874 int64_t delta = static_cast<int64_t>(Value - FinalAddress + Addend); in resolvePPC64Relocation()
881 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
885 writeInt64BE(LocalAddress, Value + Addend); in resolvePPC64Relocation()
892 uint32_t Type, int64_t Addend) { in resolveSystemZRelocation() argument
900 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
907 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
913 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
919 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
925 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
930 *LocalAddress = (uint8_t)(Value + Addend); in resolveSystemZRelocation()
933 writeInt16BE(LocalAddress, Value + Addend); in resolveSystemZRelocation()
936 writeInt32BE(LocalAddress, Value + Addend); in resolveSystemZRelocation()
939 writeInt64BE(LocalAddress, Value + Addend); in resolveSystemZRelocation()
946 uint32_t Type, int64_t Addend) { in resolveBPFRelocation() argument
959 write(isBE, Section.getAddressWithOffset(Offset), Value + Addend); in resolveBPFRelocation()
960 LLVM_DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveBPFRelocation()
965 Value += Addend; in resolveBPFRelocation()
998 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
1004 uint32_t Type, int64_t Addend, in resolveRelocation() argument
1008 resolveX86_64Relocation(Section, Offset, Value, Type, Addend, SymOffset); in resolveRelocation()
1012 (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
1016 resolveAArch64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1023 (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
1027 resolvePPC32Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1031 resolvePPC64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1034 resolveSystemZRelocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1038 resolveBPFRelocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1050 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation()
1113 if (!isInt<28>(Address + Value.Addend - SourceAddress)) in resolveAArch64ShortBranch()
1117 Value.Addend); in resolveAArch64ShortBranch()
1147 ELF::R_AARCH64_MOVW_UABS_G3, Value.Addend); in resolveAArch64Branch()
1150 ELF::R_AARCH64_MOVW_UABS_G2_NC, Value.Addend); in resolveAArch64Branch()
1153 ELF::R_AARCH64_MOVW_UABS_G1_NC, Value.Addend); in resolveAArch64Branch()
1156 ELF::R_AARCH64_MOVW_UABS_G0_NC, Value.Addend); in resolveAArch64Branch()
1183 int64_t Addend = 0; in processRelocationRef() local
1185 Addend = *AddendOrErr; in processRelocationRef()
1198 LLVM_DEBUG(dbgs() << "\t\tRelType: " << RelType << " Addend: " << Addend in processRelocationRef()
1222 Value.Addend = SymInfo.getOffset() + Addend; in processRelocationRef()
1247 Value.Addend = Addend; in processRelocationRef()
1254 Value.Addend = Addend; in processRelocationRef()
1283 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend, in processRelocationRef()
1288 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend, in processRelocationRef()
1315 ELF::R_ARM_ABS32, Value.Addend); in processRelocationRef()
1332 Value.Addend += *Placeholder; in processRelocationRef()
1335 Value.Addend += (int16_t)((*Placeholder & 0xFFF) | (((*Placeholder >> 16) & 0xF) << 12)); in processRelocationRef()
1351 uint32_t Addend = (Opcode & 0x03ffffff) << 2; in processRelocationRef() local
1353 Value.Addend += Addend; in processRelocationRef()
1373 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1376 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1391 int64_t Addend = (Opcode & 0x0000ffff) << 16; in processRelocationRef() local
1392 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
1395 int64_t Addend = Value.Addend + SignExtend32<16>(Opcode & 0x0000ffff); in processRelocationRef() local
1402 Reloc.Addend += Addend; in processRelocationRef()
1411 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
1418 Value.Addend += Opcode; in processRelocationRef()
1420 Value.Addend += SignExtend32<18>((Opcode & 0x0000ffff) << 2); in processRelocationRef()
1422 Value.Addend += SignExtend32<21>((Opcode & 0x0007ffff) << 2); in processRelocationRef()
1424 Value.Addend += SignExtend32<23>((Opcode & 0x001fffff) << 2); in processRelocationRef()
1426 Value.Addend += SignExtend32<28>((Opcode & 0x03ffffff) << 2); in processRelocationRef()
1431 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1469 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1472 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1485 ELF::R_MIPS_HIGHEST, Value.Addend); in processRelocationRef()
1488 ELF::R_MIPS_HIGHER, Value.Addend); in processRelocationRef()
1491 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1494 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1540 Value.Addend += ELF::decodePPC64LocalEntryOffset(SymOther); in processRelocationRef()
1544 Sections[Value.SectionID].getAddressWithOffset(Value.Addend); in processRelocationRef()
1551 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1575 ELF::R_PPC64_ADDR64, Value.Addend); in processRelocationRef()
1586 ELF::R_PPC64_ADDR16_HIGHEST, Value.Addend); in processRelocationRef()
1588 ELF::R_PPC64_ADDR16_HIGHER, Value.Addend); in processRelocationRef()
1590 ELF::R_PPC64_ADDR16_HI, Value.Addend); in processRelocationRef()
1592 ELF::R_PPC64_ADDR16_LO, Value.Addend); in processRelocationRef()
1651 Value.Addend -= TOCValue.Addend; in processRelocationRef()
1652 resolveRelocation(Sections[SectionID], Offset, Value.Addend, RelType, 0); in processRelocationRef()
1665 Value.Addend += Addend; in processRelocationRef()
1668 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1719 Addend); in processRelocationRef()
1721 resolveRelocation(Section, Offset, StubAddress, RelType, Addend); in processRelocationRef()
1783 Addend); in processRelocationRef()
1785 Value.Addend += support::ulittle32_t::ref( in processRelocationRef()
1793 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend, in processRelocationRef()
1821 resolveGOTOffsetRelocation(SectionID, Offset, Addend, ELF::R_X86_64_PC64); in processRelocationRef()
1827 Value.Addend += support::ulittle32_t::ref(computePlaceholderAddress(SectionID, Offset)); in processRelocationRef()
1830 Value.Addend += support::ulittle64_t::ref(computePlaceholderAddress(SectionID, Offset)); in processRelocationRef()
1837 Value.Addend += support::ulittle32_t::ref(computePlaceholderAddress(SectionID, Offset)); in processRelocationRef()