Lines Matching full:addend

228                                              uint32_t Type, int64_t Addend,  in resolveX86_64Relocation()  argument
236 Value + Addend; in resolveX86_64Relocation()
237 DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveX86_64Relocation()
243 Value += Addend; in resolveX86_64Relocation()
256 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
264 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
273 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
283 uint32_t Type, int32_t Addend) { in resolveX86Relocation() argument
287 Value + Addend; in resolveX86Relocation()
293 uint32_t RealOffset = Value + Addend - FinalAddress; in resolveX86Relocation()
308 uint32_t Type, int64_t Addend) { in resolveAArch64Relocation() argument
317 << format("%x", Type) << " Addend: 0x" << format("%llx", Addend) in resolveAArch64Relocation()
327 *TargetPtr = Value + Addend; in resolveAArch64Relocation()
331 uint64_t Result = Value + Addend - FinalAddress; in resolveAArch64Relocation()
341 uint64_t BranchImm = Value + Addend - FinalAddress; in resolveAArch64Relocation()
354 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
366 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
378 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
390 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
404 ((Value + Addend) & ~0xfffULL) - (FinalAddress & ~0xfffULL); in resolveAArch64Relocation()
420 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
432 uint64_t Result = Value + Addend; in resolveAArch64Relocation()
447 uint32_t Type, int32_t Addend) { in resolveARMRelocation() argument
452 Value += Addend; in resolveARMRelocation()
458 << " Addend: " << format("%x", Addend) << "\n"); in resolveARMRelocation()
498 uint32_t Type, int32_t Addend) { in resolveMIPSRelocation() argument
500 Value += Addend; in resolveMIPSRelocation()
507 << " Addend: " << format("%x", Addend) << "\n"); in resolveMIPSRelocation()
601 uint32_t Type, int64_t Addend, in resolveMIPS64Relocation() argument
612 RelType, Addend, in resolveMIPS64Relocation()
633 uint32_t Type, int64_t Addend, in evaluateMIPS64Relocation() argument
641 << format("%x", Type) << " Addend: 0x" << format("%llx", Addend) in evaluateMIPS64Relocation()
653 return Value + Addend; in evaluateMIPS64Relocation()
655 return ((Value + Addend) >> 2) & 0x3ffffff; in evaluateMIPS64Relocation()
658 return Value + Addend - (GOTAddr + 0x7ff0); in evaluateMIPS64Relocation()
661 return Value - Addend; in evaluateMIPS64Relocation()
664 return ((Value + Addend + 0x8000) >> 16) & 0xffff; in evaluateMIPS64Relocation()
666 return (Value + Addend) & 0xffff; in evaluateMIPS64Relocation()
674 Value += Addend; in evaluateMIPS64Relocation()
687 int64_t page = (Value + Addend + 0x8000) & ~0xffff; in evaluateMIPS64Relocation()
688 return (Value + Addend - page) & 0xffff; in evaluateMIPS64Relocation()
692 return Value + Addend - (GOTAddr + 0x7ff0); in evaluateMIPS64Relocation()
696 return ((Value + Addend - FinalAddress) >> 2) & 0xffff; in evaluateMIPS64Relocation()
700 return Value + Addend - FinalAddress; in evaluateMIPS64Relocation()
704 return ((Value + Addend - (FinalAddress & ~0x7)) >> 3) & 0x3ffff; in evaluateMIPS64Relocation()
708 return ((Value + Addend - (FinalAddress & ~0x3)) >> 2) & 0x7ffff; in evaluateMIPS64Relocation()
712 return ((Value + Addend - FinalAddress) >> 2) & 0x1fffff; in evaluateMIPS64Relocation()
716 return ((Value + Addend - FinalAddress) >> 2) & 0x3ffffff; in evaluateMIPS64Relocation()
720 return ((Value + Addend - FinalAddress + 0x8000) >> 16) & 0xffff; in evaluateMIPS64Relocation()
724 return (Value + Addend - FinalAddress) & 0xffff; in evaluateMIPS64Relocation()
812 Rel.Addend = 0x8000; in findPPC64TOCSection()
848 int64_t Addend = *AddendOrErr; in findOPDEntrySection() local
862 if (Rel.Addend != (int64_t)TargetSymbolOffset) in findOPDEntrySection()
870 Rel.Addend = (intptr_t)Addend; in findOPDEntrySection()
910 uint32_t Type, int64_t Addend) { in resolvePPC32Relocation() argument
917 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC32Relocation()
920 writeInt16BE(LocalAddress, applyPPChi(Value + Addend)); in resolvePPC32Relocation()
923 writeInt16BE(LocalAddress, applyPPCha(Value + Addend)); in resolvePPC32Relocation()
930 uint32_t Type, int64_t Addend) { in resolvePPC64Relocation() argument
937 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC64Relocation()
940 writeInt16BE(LocalAddress, applyPPClo(Value + Addend) & ~3); in resolvePPC64Relocation()
943 writeInt16BE(LocalAddress, applyPPClo(Value + Addend)); in resolvePPC64Relocation()
946 writeInt16BE(LocalAddress, applyPPClo(Value + Addend) & ~3); in resolvePPC64Relocation()
949 writeInt16BE(LocalAddress, applyPPChi(Value + Addend)); in resolvePPC64Relocation()
952 writeInt16BE(LocalAddress, applyPPCha(Value + Addend)); in resolvePPC64Relocation()
955 writeInt16BE(LocalAddress, applyPPChigher(Value + Addend)); in resolvePPC64Relocation()
958 writeInt16BE(LocalAddress, applyPPChighera(Value + Addend)); in resolvePPC64Relocation()
961 writeInt16BE(LocalAddress, applyPPChighest(Value + Addend)); in resolvePPC64Relocation()
964 writeInt16BE(LocalAddress, applyPPChighesta(Value + Addend)); in resolvePPC64Relocation()
967 assert(((Value + Addend) & 3) == 0); in resolvePPC64Relocation()
970 writeInt16BE(LocalAddress + 2, (aalk & 3) | ((Value + Addend) & 0xfffc)); in resolvePPC64Relocation()
974 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
979 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
984 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
988 int32_t Result = static_cast<int32_t>(Value + Addend); in resolvePPC64Relocation()
995 int32_t delta = static_cast<int32_t>(Value - FinalAddress + Addend); in resolvePPC64Relocation()
1003 int32_t delta = static_cast<int32_t>(Value - FinalAddress + Addend); in resolvePPC64Relocation()
1010 uint64_t Delta = Value - FinalAddress + Addend; in resolvePPC64Relocation()
1014 writeInt64BE(LocalAddress, Value + Addend); in resolvePPC64Relocation()
1021 uint32_t Type, int64_t Addend) { in resolveSystemZRelocation() argument
1029 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
1036 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
1042 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
1048 writeInt64BE(LocalAddress, Value + Addend); in resolveSystemZRelocation()
1070 // the symbol resides (RE.Addend provides additional information about the
1076 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
1082 uint32_t Type, int64_t Addend, in resolveRelocation() argument
1086 resolveX86_64Relocation(Section, Offset, Value, Type, Addend, SymOffset); in resolveRelocation()
1090 (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
1094 resolveAArch64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1101 (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
1109 Type, (uint32_t)(Addend & 0xffffffffL)); in resolveRelocation()
1111 resolveMIPS64Relocation(Section, Offset, Value, Type, Addend, SymOffset, in resolveRelocation()
1117 resolvePPC32Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1121 resolvePPC64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1124 resolveSystemZRelocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1136 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation()
1172 int64_t Addend = AddendOrErr ? *AddendOrErr : 0; in processRelocationRef() local
1183 DEBUG(dbgs() << "\t\tRelType: " << RelType << " Addend: " << Addend in processRelocationRef()
1199 Value.Addend = SymInfo.getOffset() + Addend; in processRelocationRef()
1212 Value.Addend = Addend; in processRelocationRef()
1218 Value.Addend = Addend; in processRelocationRef()
1260 ELF::R_AARCH64_MOVW_UABS_G3, Value.Addend); in processRelocationRef()
1263 ELF::R_AARCH64_MOVW_UABS_G2_NC, Value.Addend); in processRelocationRef()
1266 ELF::R_AARCH64_MOVW_UABS_G1_NC, Value.Addend); in processRelocationRef()
1269 ELF::R_AARCH64_MOVW_UABS_G0_NC, Value.Addend); in processRelocationRef()
1310 ELF::R_ARM_ABS32, Value.Addend); in processRelocationRef()
1327 Value.Addend += *Placeholder; in processRelocationRef()
1330 Value.Addend += (int16_t)((*Placeholder & 0xFFF) | (((*Placeholder >> 16) & 0xF) << 12)); in processRelocationRef()
1343 // Extract the addend from the instruction. in processRelocationRef()
1346 uint32_t Addend = (Opcode & 0x03ffffff) << 2; in processRelocationRef() local
1348 Value.Addend += Addend; in processRelocationRef()
1365 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1368 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1384 int64_t Addend = (Opcode & 0x0000ffff) << 16; in processRelocationRef() local
1385 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
1388 int64_t Addend = Value.Addend + SignExtend32<16>(Opcode & 0x0000ffff); in processRelocationRef() local
1395 Reloc.Addend += Addend; in processRelocationRef()
1404 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
1411 Value.Addend += Opcode; in processRelocationRef()
1413 Value.Addend += SignExtend32<18>((Opcode & 0x0000ffff) << 2); in processRelocationRef()
1415 Value.Addend += SignExtend32<21>((Opcode & 0x0007ffff) << 2); in processRelocationRef()
1417 Value.Addend += SignExtend32<23>((Opcode & 0x001fffff) << 2); in processRelocationRef()
1419 Value.Addend += SignExtend32<28>((Opcode & 0x03ffffff) << 2); in processRelocationRef()
1424 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1461 Value.Addend += ELF::decodePPC64LocalEntryOffset(SymOther); in processRelocationRef()
1464 Sections[Value.SectionID].getAddressWithOffset(Value.Addend); in processRelocationRef()
1468 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1496 ELF::R_PPC64_ADDR64, Value.Addend); in processRelocationRef()
1507 ELF::R_PPC64_ADDR16_HIGHEST, Value.Addend); in processRelocationRef()
1509 ELF::R_PPC64_ADDR16_HIGHER, Value.Addend); in processRelocationRef()
1511 ELF::R_PPC64_ADDR16_HI, Value.Addend); in processRelocationRef()
1513 ELF::R_PPC64_ADDR16_LO, Value.Addend); in processRelocationRef()
1571 Value.Addend -= TOCValue.Addend; in processRelocationRef()
1572 resolveRelocation(Sections[SectionID], Offset, Value.Addend, RelType, 0); in processRelocationRef()
1575 // via a ELF::R_PPC64_TOC relocation (where both symbol and addend are in processRelocationRef()
1577 // symbols (in which case the addend is respected). in processRelocationRef()
1583 Value.Addend += Addend; in processRelocationRef()
1586 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1637 Addend); in processRelocationRef()
1639 resolveRelocation(Section, Offset, StubAddress, RelType, Addend); in processRelocationRef()
1686 // The load of the GOT address has an addend of -4 in processRelocationRef()
1697 Addend); in processRelocationRef()
1699 RelocationEntry RE(SectionID, Offset, ELF::R_X86_64_PC32, Value.Addend, in processRelocationRef()
1705 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend); in processRelocationRef()
1714 Value.Addend += support::ulittle32_t::ref(computePlaceholderAddress(SectionID, Offset)); in processRelocationRef()
1717 Value.Addend += support::ulittle64_t::ref(computePlaceholderAddress(SectionID, Offset)); in processRelocationRef()
1724 Value.Addend += support::ulittle32_t::ref(computePlaceholderAddress(SectionID, Offset)); in processRelocationRef()