Home
last modified time | relevance | path

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

1234567

/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldCOFFAArch64.h101 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument
109 OriginalRelValueRef.Addend = Addend; in generateRelocationStub()
128 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub()
134 Addend = 0; in generateRelocationStub()
138 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub()
168 uint64_t Addend = 0; in processRelocationRef() local
196 Addend = read32le(Displacement); in processRelocationRef()
200 Addend = (orig & 0x03FFFFFF) << 2; in processRelocationRef()
203 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef()
204 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()
145 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument
153 OriginalRelValueRef.Addend = Addend; in generateRelocationStub()
[all …]
H A DRuntimeDyldCOFFThumb.h83 uint64_t Addend = 0; in processRelocationRef() local
92 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
104 << TargetName << " Addend " << Addend << "\n"); in processRelocationRef()
141 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
148 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
161 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
167 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
176 TargetOffset + Addend, true, 0); in processRelocationRef()
201 : Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend); in resolveRelocation()
216 Sections[0].getLoadAddress() + RE.Addend; in resolveRelocation()
[all …]
H A DRuntimeDyldCOFFI386.h79 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 - 4 - RE.Offset; in resolveRelocation()
210 assert(static_cast<uint64_t>(RE.Addend) <= UINT32_MAX && in resolveRelocation()
214 << RE.Addend << '\n'); in resolveRelocation()
[all …]
H A DRuntimeDyldMachOX86_64.h51 RE.Addend = memcpyAddend(RE); in processRelocationRef()
76 RE.Addend = Value.Offset; in processRelocationRef()
109 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
116 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
134 Value.Offset -= RE.Addend; in processGOTRelocation()
153 MachO::X86_64_RELOC_UNSIGNED, RE.Addend, true, 2); in processGOTRelocation()
170 int64_t Addend = in processSubtractRelocation() local
196 Addend += SecB.getAddress(); in processSubtractRelocation()
222 Addend -= SecA.getAddress(); in processSubtractRelocation()
225 RelocationEntry R(SectionID, Offset, MachO::X86_64_RELOC_SUBTRACTOR, (uint64_t)Addend, in processSubtractRelocation()
H A DRuntimeDyldELFMips.h32 uint32_t Value, uint32_t Type, int32_t Addend);
34 uint64_t Value, uint32_t Type, int64_t Addend,
37 uint64_t Value, uint32_t Type, int64_t Addend,
45 uint64_t Addend);
56 uint32_t Type, int64_t Addend,
H A DRuntimeDyldMachOI386.h68 RE.Addend = memcpyAddend(RE); in processRelocationRef()
88 RE.Addend = Value.Offset; in processRelocationRef()
111 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
119 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
161 uint64_t Addend = readBytesUnaligned(LocalAddress, NumBytes); in processSECTDIFFRelocation() local
195 Addend -= AddrA - AddrB; in processSECTDIFFRelocation()
198 << ", AddrB: " << AddrB << ", Addend: " << Addend in processSECTDIFFRelocation()
202 RelocationEntry R(SectionID, Offset, RelocType, Addend, SectionAID, in processSECTDIFFRelocation()
H A DRuntimeDyldMachOARM.h162 RE.Addend = *AddendOrErr; in processRelocationRef()
193 RE.Addend = Value.Offset; in processRelocationRef()
220 Value += RE.Addend; in resolveRelocation()
239 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
244 Value += RE.Addend; in resolveRelocation()
264 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
408 int64_t Addend = FullImmVal - (AddrA - AddrB); in processHALFSECTDIFFRelocation() local
414 << ", AddrB: " << AddrB << ", Addend: " << Addend in processHALFSECTDIFFRelocation()
418 RelocationEntry R(SectionID, Offset, RelocType, Addend, SectionAID, in processHALFSECTDIFFRelocation()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp261 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()
[all …]
H A DRuntimeDyldELF.h29 uint64_t Value, uint32_t Type, int64_t Addend,
33 uint64_t Value, uint32_t Type, int64_t Addend,
37 uint32_t Value, uint32_t Type, int32_t Addend);
40 uint64_t Value, uint32_t Type, int64_t Addend);
49 uint32_t Value, uint32_t Type, int32_t Addend);
52 uint64_t Value, uint32_t Type, int64_t Addend);
55 uint64_t Value, uint32_t Type, int64_t Addend);
58 uint64_t Value, uint32_t Type, int64_t Addend);
61 uint64_t Value, uint32_t Type, int64_t Addend);
H A DRuntimeDyldImpl.h130 int64_t Addend; variable
154 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
159 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
165 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
172 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry()
183 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry()
194 int64_t Addend = 0; variable
200 Addend == Other.Addend && SymbolName == Other.SymbolName &&
208 if (Addend != Other.Addend)
209 return Addend < Other.Addend;
H A DRuntimeDyldMachO.cpp71 int64_t Addend = readBytesUnaligned(LocalAddress, NumBytes); in processScatteredVANILLA() local
86 Addend -= SectionBaseAddr; in processScatteredVANILLA()
87 RelocationEntry R(SectionID, Offset, RelocType, Addend, IsPCRel, Size); in processScatteredVANILLA()
120 Value.Offset = SymInfo.getOffset() + RE.Addend; in getRelocationValueRef()
123 Value.Offset = RE.Addend; in getRelocationValueRef()
134 Value.Offset = RE.Addend - Addr; in getRelocationValueRef()
157 << " Value: " << format("0x%016" PRIx64, Value) << " Addend: " << RE.Addend in dumpRelocationToResolve()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Object/
H A DRelocationResolver.cpp43 uint64_t LocData, int64_t Addend) { in resolveX86_64() argument
50 return S + Addend; in resolveX86_64()
53 return S + Addend - Offset; in resolveX86_64()
56 return (S + Addend) & 0xFFFFFFFF; in resolveX86_64()
75 uint64_t /*LocData*/, int64_t Addend) { in resolveAArch64() argument
78 return (S + Addend) & 0xFFFFFFFF; in resolveAArch64()
80 return S + Addend; in resolveAArch64()
82 return (S + Addend - Offset) & 0xFFFFFFFF; in resolveAArch64()
84 return S + Addend - Offset; in resolveAArch64()
125 uint64_t /*LocData*/, int64_t Addend) { in resolveMips64() argument
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ExecutionEngine/JITLink/
H A DMachO_x86_64.cpp180 uint64_t Addend; in parsePairRelocation() local
184 Addend = FixupValue + (FixupAddress - FromSymbol->getAddress()); in parsePairRelocation()
190 Addend = FixupValue - (FixupAddress - ToSymbol->getAddress()); in parsePairRelocation()
198 return PairRelocInfo(DeltaKind, TargetSymbol, Addend); in parsePairRelocation()
271 uint64_t Addend = 0; in addRelocations() local
286 Addend = *(const little32_t *)FixupContent; in addRelocations()
294 Addend = *(const little32_t *)FixupContent - 4; in addRelocations()
302 Addend = *(const little32_t *)FixupContent; in addRelocations()
313 Addend = *(const little32_t *)FixupContent - 4; in addRelocations()
321 Addend = *(const ulittle32_t *)FixupContent; in addRelocations()
[all …]
H A DMachO_arm64.cpp162 uint64_t Addend; in parsePairRelocation() local
166 Addend = FixupValue + (FixupAddress - FromSymbol->getAddress()); in parsePairRelocation()
171 Addend = FixupValue - (FixupAddress - ToSymbol->getAddress()); in parsePairRelocation()
179 return PairRelocInfo(DeltaKind, TargetSymbol, Addend); in parsePairRelocation()
254 uint64_t Addend = 0; in addRelocations() local
260 Addend = SignExtend64(RI.r_symbolnum, 24); in addRelocations()
278 dbgs() << " Addend: value = " << formatv("{0:x6}", Addend) in addRelocations()
308 Addend = *(const ulittle32_t *)FixupContent; in addRelocations()
315 Addend = *(const ulittle64_t *)FixupContent; in addRelocations()
323 Addend = TargetAddress - TargetSymbol->getAddress(); in addRelocations()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/MC/
H A DMCELFObjectWriter.h34 uint64_t Addend; // The addend to use. member
39 uint64_t Addend, const MCSymbolELF *OriginalSymbol, in ELFRelocationEntry()
41 : Offset(Offset), Symbol(Symbol), Type(Type), Addend(Addend), in ELFRelocationEntry()
46 << ", Addend=" << Addend << ", OriginalSymbol=" << OriginalSymbol in print()
/netbsd-src/external/gpl3/binutils/dist/gold/
H A Doutput.h1127 typedef typename elfcpp::Elf_types<size>::Elf_Addr Addend; typedef
1240 local_section_offset(Addend addend) const;
1245 symbol_value(Addend addend) const;
1369 typedef typename elfcpp::Elf_types<size>::Elf_Addr Addend; typedef
1379 Address address, Addend addend, bool is_relative, in Output_reloc()
1388 unsigned int shndx, Address address, Addend addend, in Output_reloc()
1399 Addend addend, bool is_relative, in Output_reloc()
1410 Addend addend, bool is_relative, in Output_reloc()
1421 Address address, Addend addend, bool is_relative) in Output_reloc()
1427 unsigned int shndx, Address address, Addend addend, in Output_reloc()
[all …]
H A Dcopy-relocs.h98 typedef typename elfcpp::Elf_types<size>::Elf_Addr Addend; typedef
109 Address address, Addend addend) in Copy_reloc_entry()
121 Addend addend_;
/netbsd-src/external/gpl3/binutils.old/dist/gold/
H A Doutput.h1127 typedef typename elfcpp::Elf_types<size>::Elf_Addr Addend; typedef
1240 local_section_offset(Addend addend) const;
1245 symbol_value(Addend addend) const;
1369 typedef typename elfcpp::Elf_types<size>::Elf_Addr Addend; typedef
1379 Address address, Addend addend, bool is_relative, in Output_reloc()
1388 unsigned int shndx, Address address, Addend addend, in Output_reloc()
1399 Addend addend, bool is_relative, in Output_reloc()
1410 Addend addend, bool is_relative, in Output_reloc()
1421 Address address, Addend addend, bool is_relative) in Output_reloc()
1427 unsigned int shndx, Address address, Addend addend, in Output_reloc()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/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,
/netbsd-src/external/apache2/llvm/dist/llvm/tools/dsymutil/
H A DDwarfLinkerForBinary.h63 uint64_t Addend; member
66 ValidReloc(uint64_t Offset, uint32_t Size, uint64_t Addend, in ValidReloc()
68 : Offset(Offset), Size(Size), Addend(Addend), Mapping(Mapping) {} in ValidReloc()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_atomic_msvc.h25 char volatile *Addend, char Value); // NOLINT
28 short volatile *Addend, short Value); // NOLINT
31 long volatile *Addend, long Value); // NOLINT
34 long volatile * Addend, long Value); // NOLINT
61 long long volatile * Addend, long long Value); // NOLINT
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_atomic_msvc.h23 char volatile *Addend, char Value); // NOLINT
26 short volatile *Addend, short Value); // NOLINT
29 long volatile *Addend, long Value); // NOLINT
32 long volatile * Addend, long Value); // NOLINT
59 long long volatile * Addend, long long Value); // NOLINT

1234567