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