Home
last modified time | relevance | path

Searched refs:Addend (Results 1 – 25 of 91) sorted by relevance

1234

/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DRelocationResolver.cpp56 uint64_t LocData, int64_t Addend) { in resolveX86_64() argument
63 return S + Addend; in resolveX86_64()
66 return S + Addend - Offset; in resolveX86_64()
69 return (S + Addend) & 0xFFFFFFFF; in resolveX86_64()
89 uint64_t /*LocData*/, int64_t Addend) { in resolveAArch64() argument
92 return (S + Addend) & 0xFFFFFFFF; in resolveAArch64()
94 return S + Addend; in resolveAArch64()
96 return (S + Addend - Offset) & 0xFFFF; in resolveAArch64()
98 return (S + Addend - Offset) & 0xFFFFFFFF; in resolveAArch64()
100 return S + Addend - Offset; in resolveAArch64()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldCOFFAArch64.h113 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument
121 OriginalRelValueRef.Addend = Addend; in generateRelocationStub()
140 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub()
146 Addend = 0; in generateRelocationStub()
150 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub()
181 uint64_t Addend = 0; in processRelocationRef() local
209 Addend = read32le(Displacement); in processRelocationRef()
213 Addend = (orig & 0x03FFFFFF) << 2; in processRelocationRef()
216 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef()
217 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef()
[all …]
H A DRuntimeDyldMachOAArch64.h38 int64_t Addend = 0; in decodeAddend() local
83 Addend = *reinterpret_cast<support::ulittle32_t *>(LocalAddress); in decodeAddend()
85 Addend = *reinterpret_cast<support::ulittle64_t *>(LocalAddress); in decodeAddend()
97 Addend = (*p & 0x03FFFFFF) << 2; in decodeAddend()
98 Addend = SignExtend64(Addend, 28); in decodeAddend()
110 Addend = ((*p & 0x60000000) >> 29) | ((*p & 0x01FFFFE0) >> 3) << 12; in decodeAddend()
111 Addend = SignExtend64(Addend, 33); in decodeAddend()
132 Addend = (*p & 0x003FFC00) >> 10; in decodeAddend()
147 Addend <<= ImplicitShift; in decodeAddend()
151 return Addend; in decodeAddend()
[all …]
H A DRuntimeDyldELFMips.cpp18 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation()
20 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
23 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
31 uint64_t Addend) { in evaluateRelocation() argument
35 Addend, RE.SymOffset, RE.SectionID); in evaluateRelocation()
110 int64_t Addend, uint64_t SymOffset, SID SectionID) { in evaluateMIPS64Relocation() argument
118 << format("%llx", Addend) in evaluateMIPS64Relocation()
132 return Value + Addend; in evaluateMIPS64Relocation()
134 return ((Value + Addend) >> 2) & 0x3ffffff; in evaluateMIPS64Relocation()
137 return Value + Addend - (GOTAddr + 0x7ff0); in evaluateMIPS64Relocation()
[all …]
H A DRuntimeDyldCOFFX86_64.h50 void write32BitOffset(uint8_t *Target, int64_t Addend, uint64_t Delta) { in write32BitOffset() argument
51 uint64_t Result = Addend + Delta; in write32BitOffset()
104 uint64_t Result = Value + RE.Addend; in resolveRelocation()
120 write32BitOffset(Target, RE.Addend, Value - ImageBase); in resolveRelocation()
126 writeBytesUnaligned(Value + RE.Addend, Target, 8); in resolveRelocation()
131 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && "Relocation overflow"); in resolveRelocation()
132 assert(static_cast<int64_t>(RE.Addend) >= INT32_MIN && "Relocation underflow"); in resolveRelocation()
133 writeBytesUnaligned(RE.Addend, Target, 4); in resolveRelocation()
152 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument
160 OriginalRelValueRef.Addend = Addend; in generateRelocationStub()
[all …]
H A DRuntimeDyldCOFFThumb.h105 uint64_t Addend = 0; in processRelocationRef() local
114 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
126 << TargetName << " Addend " << Addend << "\n"); in processRelocationRef()
163 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
170 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
183 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
189 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
198 TargetOffset + Addend, true, 0); in processRelocationRef()
223 : Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend); in resolveRelocation()
238 Sections[0].getLoadAddress() + RE.Addend; in resolveRelocation()
[all …]
H A DRuntimeDyldCOFFI386.h78 // Determine the Addend used to adjust the relocation value. in processRelocationRef()
79 uint64_t Addend = 0; in processRelocationRef() local
89 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
102 << TargetName << " Addend " << Addend << "\n"); in processRelocationRef()
117 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
130 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
156 RE.Addend); in resolveRelocation()
170 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend) - in resolveRelocation()
186 Result = Result - Section.getLoadAddress() + RE.Addend in resolveRelocation()
[all...]
H A DRuntimeDyldELFMips.h31 uint32_t Value, uint32_t Type, int32_t Addend);
33 uint64_t Value, uint32_t Type, int64_t Addend,
36 uint64_t Value, uint32_t Type, int64_t Addend,
44 uint64_t Addend);
55 uint32_t Type, int64_t Addend,
H A DRuntimeDyldMachOX86_64.h50 RE.Addend = memcpyAddend(RE); in processRelocationRef()
75 RE.Addend = Value.Offset; in processRelocationRef()
108 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
115 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
133 Value.Offset -= RE.Addend; in processGOTRelocation()
152 MachO::X86_64_RELOC_UNSIGNED, RE.Addend, true, 2); in processGOTRelocation()
169 int64_t Addend = in processSubtractRelocation() local
195 Addend += SecB.getAddress(); in processSubtractRelocation()
221 Addend -= SecA.getAddress(); in processSubtractRelocation()
224 RelocationEntry R(SectionID, Offset, MachO::X86_64_RELOC_SUBTRACTOR, (uint64_t)Addend, in processSubtractRelocation()
H A DRuntimeDyldMachOI386.h67 RE.Addend = memcpyAddend(RE); in processRelocationRef()
87 RE.Addend = Value.Offset; in processRelocationRef()
110 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
118 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
160 uint64_t Addend = readBytesUnaligned(LocalAddress, NumBytes); in processSECTDIFFRelocation() local
194 Addend -= AddrA - AddrB; in processSECTDIFFRelocation()
197 << ", AddrB: " << AddrB << ", Addend: " << Addend in processSECTDIFFRelocation()
201 RelocationEntry R(SectionID, Offset, RelocType, Addend, SectionAID, in processSECTDIFFRelocation()
H A DRuntimeDyldMachOARM.h161 RE.Addend = *AddendOrErr; in processRelocationRef()
192 RE.Addend = Value.Offset; in processRelocationRef()
219 Value += RE.Addend; in resolveRelocation()
238 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
243 Value += RE.Addend; in resolveRelocation()
263 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
407 int64_t Addend = FullImmVal - (AddrA - AddrB); in processHALFSECTDIFFRelocation() local
413 << ", AddrB: " << AddrB << ", Addend: " << Addend in processHALFSECTDIFFRelocation()
417 RelocationEntry R(SectionID, Offset, RelocType, Addend, SectionAID, in processHALFSECTDIFFRelocation()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp260 uint32_t Type, int64_t Addend, in resolveX86_64Relocation() argument
269 Value += Addend; in resolveX86_64Relocation()
278 Value += Addend; in resolveX86_64Relocation()
289 Value + Addend; in resolveX86_64Relocation()
290 LLVM_DEBUG(dbgs() << "Writing " << format("%p", (Value + Addend)) << " at " in resolveX86_64Relocation()
296 Value += Addend; in resolveX86_64Relocation()
309 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
317 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
326 int64_t RealOffset = Value + Addend - FinalAddress; in resolveX86_64Relocation()
343 int64_t GOTOffset = Value - GOTBase + Addend; in resolveX86_64Relocation()
[all …]
H A DRuntimeDyldELF.h27 uint64_t Value, uint32_t Type, int64_t Addend,
31 uint64_t Value, uint32_t Type, int64_t Addend,
35 uint32_t Value, uint32_t Type, int32_t Addend);
38 uint64_t Value, uint32_t Type, int64_t Addend);
47 uint32_t Value, uint32_t Type, int32_t Addend);
51 uint32_t Type, int64_t Addend);
62 uint64_t Value, uint32_t Type, int64_t Addend);
65 uint64_t Value, uint32_t Type, int64_t Addend);
68 uint64_t Value, uint32_t Type, int64_t Addend);
71 uint64_t Value, uint32_t Type, int64_t Addend);
[all …]
H A DRuntimeDyldImpl.h125 int64_t Addend; variable
155 : Offset(offset), Addend(addend), SectionID(id), RelType(type), in RelocationEntry()
160 : Offset(offset), Addend(addend), SectionID(id), RelType(type), in RelocationEntry()
166 : Offset(offset), Addend(addend), SectionID(id), RelType(type), in RelocationEntry()
172 : Offset(offset), Addend(SectionAOffset - SectionBOffset + addend), in RelocationEntry()
183 : Offset(offset), Addend(SectionAOffset - SectionBOffset + addend), in RelocationEntry()
195 int64_t Addend = 0; variable
201 Addend == Other.Addend && SymbolName == Other.SymbolName &&
205 return std::tie(SectionID, Offset, Addend, IsStubThumb, SymbolName) <
206 std::tie(Other.SectionID, Other.Offset, Other.Addend,
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
H A Dloongarch.h341 int64_t Addend = E.getAddend(); in applyFixup() local
345 *(ulittle64_t *)FixupPtr = TargetAddress + Addend; in applyFixup()
348 uint64_t Value = TargetAddress + Addend; in applyFixup()
355 int64_t Value = TargetAddress - FixupAddress + Addend; in applyFixup()
370 int64_t Value = TargetAddress - FixupAddress + Addend; in applyFixup()
386 int64_t Value = TargetAddress - FixupAddress + Addend; in applyFixup()
402 int64_t Value = TargetAddress - FixupAddress + Addend; in applyFixup()
410 int64_t Value = FixupAddress - TargetAddress + Addend; in applyFixup()
417 *(little64_t *)FixupPtr = TargetAddress - FixupAddress + Addend; in applyFixup()
420 uint64_t Target = TargetAddress + Addend; in applyFixup()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DCOFF_x86_64.cpp89 int64_t Addend = 0; in addSingleRelocation() local
103 Addend = *reinterpret_cast<const support::little32_t *>(FixupPtr); in addSingleRelocation()
108 Addend = *reinterpret_cast<const support::little32_t *>(FixupPtr); in addSingleRelocation()
113 Addend = *reinterpret_cast<const support::little32_t *>(FixupPtr); in addSingleRelocation()
114 Addend -= 1; in addSingleRelocation()
119 Addend = *reinterpret_cast<const support::little32_t *>(FixupPtr); in addSingleRelocation()
120 Addend -= 2; in addSingleRelocation()
125 Addend = *reinterpret_cast<const support::little32_t *>(FixupPtr); in addSingleRelocation()
126 Addend -= 3; in addSingleRelocation()
131 Addend = *reinterpret_cast<const support::little32_t *>(FixupPtr); in addSingleRelocation()
[all …]
H A DMachO_x86_64.cpp186 uint64_t Addend; in parsePairRelocation() local
215 Addend = FixupValue + (FixupAddress - FromSymbol->getAddress()); in parsePairRelocation()
221 Addend = FixupValue - (FixupAddress - ToSymbol->getAddress()); in parsePairRelocation()
224 return PairRelocInfo(DeltaKind, TargetSymbol, Addend); in parsePairRelocation()
299 uint64_t Addend = 0; in addRelocations() local
314 Addend = *(const little32_t *)FixupContent; in addRelocations()
322 Addend = *(const little32_t *)FixupContent - 4; in addRelocations()
330 Addend = *(const little32_t *)FixupContent; in addRelocations()
341 Addend = *(const little32_t *)FixupContent - 4; in addRelocations()
349 Addend = *(const little32_t *)FixupContent; in addRelocations()
[all …]
H A DMachO_arm64.cpp211 uint64_t Addend; in parsePairRelocation() local
240 Addend = FixupValue + (FixupAddress - FromSymbol->getAddress()); in parsePairRelocation()
246 Addend = FixupValue - (FixupAddress - ToSymbol->getAddress()); in parsePairRelocation()
249 return PairRelocInfo(DeltaKind, TargetSymbol, Addend); in parsePairRelocation()
328 uint64_t Addend = 0; in addRelocations() local
334 Addend = SignExtend64(RI.r_symbolnum, 24); in addRelocations()
354 dbgs() << " Addend: value = " << formatv("{0:x6}", Addend) in addRelocations()
385 Addend = *(const ulittle32_t *)FixupContent; in addRelocations()
394 Addend = *(const ulittle64_t *)FixupContent; in addRelocations()
409 Addend = TargetAddress - TargetSymbol->getAddress(); in addRelocations()
[all …]
H A Daarch32.cpp471 int64_t Addend = E.getAddend(); in applyFixupData() local
479 int64_t Value = TargetAddress - FixupAddress + Addend; in applyFixupData()
489 int64_t Value = TargetAddress + Addend; in applyFixupData()
499 int64_t Value = TargetAddress - FixupAddress + Addend; in applyFixupData()
528 int64_t Addend = E.getAddend(); in applyFixupArm() local
539 int64_t Value = TargetAddress - FixupAddress + Addend; in applyFixupArm()
554 int64_t Value = TargetAddress - FixupAddress + Addend; in applyFixupArm()
578 uint16_t Value = (TargetAddress + Addend) & 0xffff; in applyFixupArm()
583 uint16_t Value = ((TargetAddress + Addend) >> 16) & 0xffff; in applyFixupArm()
604 int64_t Addend = E.getAddend(); in applyFixupThumb() local
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCELFExtras.h27 uint OffsetMask = 8, Offset = 0, Addend = 0; in encodeCrel() local
39 (Addend != uint(CR.r_addend) ? 4 : 0); in encodeCrel()
56 encodeSLEB128(std::make_signed_t<uint>(CR.r_addend - Addend), OS); in encodeCrel()
57 Addend = CR.r_addend; in encodeCrel()
H A DMCELFObjectWriter.h39 uint64_t Addend; // The addend to use. member
42 uint64_t Addend) in ELFRelocationEntry()
43 : Offset(Offset), Symbol(Symbol), Type(Type), Addend(Addend) {} in ELFRelocationEntry()
47 << ", Addend=" << Addend; in print()
/freebsd/sys/dev/pms/RefTisa/sat/api/
H A Dtdsmapi.h84 sbit32 volatile *Addend
90 sbit32 volatile *Addend
118 sbit32 volatile *Addend
124 sbit32 volatile *Addend
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsELFObjectWriter.cpp148 return X.Type == MatchingType && X.Symbol == R.Symbol && X.Addend == R.Addend; in isMatchingReloc()
422 R.Addend <= R1.Addend && in sortRelocs()
423 (Best == Sorted.end() || R1.Addend < Best->R.Addend || in sortRelocs()
424 (!Best->Matched && R1.Addend == Best->R.Addend))) in sortRelocs()
427 if (Best != Sorted.end() && R.Addend == Best->R.Addend) in sortRelocs()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_atomic_msvc.h23 extern "C" char _InterlockedExchange8(char volatile *Addend, char Value);
25 extern "C" short _InterlockedExchange16(short volatile *Addend, short Value);
27 extern "C" long _InterlockedExchange(long volatile *Addend, long Value);
29 extern "C" long _InterlockedExchangeAdd(long volatile *Addend, long Value);
50 extern "C" long long _InterlockedExchangeAdd64(long long volatile *Addend,
/freebsd/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DELFDump.cpp106 int64_t Addend = 0; in getRelocationValueString() local
116 Addend = ERela.r_addend; in getRelocationValueString()
120 Addend = ERela->r_addend; in getRelocationValueString()
161 if (Addend != 0) { in getRelocationValueString()
162 Fmt << (Addend < 0 in getRelocationValueString()
165 (Addend < 0 ? -(uint64_t)Addend : (uint64_t)Addend)); in getRelocationValueString()

1234