Home
last modified time | relevance | path

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

1234

/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp282 Value += Addend; in resolveX86_64Relocation()
491 Value += Addend; in resolveARMRelocation()
663 Rel.Addend = (intptr_t)Addend; in findOPDEntrySection()
887 Value += Addend; in resolveBPFRelocation()
1143 Value.Addend = SymInfo.getOffset() + Addend; in processRelocationRef()
1168 Value.Addend = Addend; in processRelocationRef()
1175 Value.Addend = Addend; in processRelocationRef()
1272 Value.Addend += Addend; in processRelocationRef()
1321 Reloc.Addend += Addend; in processRelocationRef()
1570 Value.Addend -= TOCValue.Addend; in processRelocationRef()
[all …]
H A DRuntimeDyldELF.h30 uint64_t Value, uint32_t Type, int64_t Addend,
34 uint64_t Value, uint32_t Type, int64_t Addend,
38 uint32_t Value, uint32_t Type, int32_t Addend);
41 uint64_t Value, uint32_t Type, int64_t Addend);
50 uint32_t Value, uint32_t Type, int32_t Addend);
53 uint64_t Value, uint32_t Type, int64_t Addend);
56 uint64_t Value, uint32_t Type, int64_t Addend);
59 uint64_t Value, uint32_t Type, int64_t Addend);
62 uint64_t Value, uint32_t Type, int64_t Addend);
H A DRuntimeDyldImpl.h132 int64_t Addend; variable
156 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
161 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
167 : SectionID(id), Offset(offset), RelType(type), Addend(addend), in RelocationEntry()
174 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry()
185 Addend(SectionAOffset - SectionBOffset + addend), IsPCRel(IsPCRel), in RelocationEntry()
196 int64_t Addend; variable
199 RelocationValueRef() : SectionID(0), Offset(0), Addend(0), in RelocationValueRef()
204 Addend == Other.Addend && SymbolName == Other.SymbolName &&
212 if (Addend != Other.Addend)
[all …]
H A DRuntimeDyldMachO.cpp72 int64_t Addend = readBytesUnaligned(LocalAddress, NumBytes); in processScatteredVANILLA() local
87 Addend -= SectionBaseAddr; in processScatteredVANILLA()
88 RelocationEntry R(SectionID, Offset, RelocType, Addend, IsPCRel, Size); in processScatteredVANILLA()
121 Value.Offset = SymInfo.getOffset() + RE.Addend; in getRelocationValueRef()
124 Value.Offset = RE.Addend; in getRelocationValueRef()
135 Value.Offset = RE.Addend - Addr; in getRelocationValueRef()
158 << " Value: " << format("0x%016" PRIx64, Value) << " Addend: " << RE.Addend in dumpRelocationToResolve()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOAArch64.h39 int64_t Addend = 0; in decodeAddend() local
99 Addend = SignExtend64(Addend, 28); in decodeAddend()
112 Addend = SignExtend64(Addend, 33); in decodeAddend()
148 Addend <<= ImplicitShift; in decodeAddend()
152 return Addend; in decodeAddend()
263 Addend >>= ImplicitShift; in encodeAddend()
318 RE.Addend = *Addend; in processRelocationRef()
340 RE.Addend = Value.Offset; in processRelocationRef()
385 RE.IsPCRel ? (RE.Addend - RE.Offset) : (Value + RE.Addend); in resolveRelocation()
412 Value += RE.Addend; in resolveRelocation()
[all …]
H A DRuntimeDyldELFMips.cpp119 << format("%llx", Addend) in evaluateMIPS64Relocation()
133 return Value + Addend; in evaluateMIPS64Relocation()
135 return ((Value + Addend) >> 2) & 0x3ffffff; in evaluateMIPS64Relocation()
138 return Value + Addend - (GOTAddr + 0x7ff0); in evaluateMIPS64Relocation()
141 return Value - Addend; in evaluateMIPS64Relocation()
146 return (Value + Addend) & 0xffff; in evaluateMIPS64Relocation()
158 Value += Addend; in evaluateMIPS64Relocation()
172 return (Value + Addend - page) & 0xffff; in evaluateMIPS64Relocation()
176 return Value + Addend - (GOTAddr + 0x7ff0); in evaluateMIPS64Relocation()
184 return Value + Addend - FinalAddress; in evaluateMIPS64Relocation()
[all …]
H A DRuntimeDyldCOFFX86_64.h52 uint64_t Result = Addend + Delta; in write32BitOffset()
104 uint64_t Result = Value + RE.Addend; in resolveRelocation()
127 writeBytesUnaligned(Value + RE.Addend, Target, 8); in resolveRelocation()
134 writeBytesUnaligned(RE.Addend, Target, 4); in resolveRelocation()
154 OriginalRelValueRef.Addend = Addend; in generateRelocationStub()
183 Addend = 0; in generateRelocationStub()
187 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub()
211 uint64_t Addend = 0; in processRelocationRef() local
230 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
241 Addend = readBytesUnaligned(Displacement, 8); in processRelocationRef()
[all …]
H A DRuntimeDyldCOFFThumb.h81 uint64_t Addend = 0; in processRelocationRef() local
90 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
126 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
224 assert(static_cast<uint64_t>(RE.Addend) <= UINT32_MAX && in resolveRelocation()
229 writeBytesUnaligned(RE.Addend, Target, 2); in resolveRelocation()
264 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
266 assert(static_cast<int64_t>(RE.Addend) >= INT32_MIN && in resolveRelocation()
279 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
281 assert(static_cast<int64_t>(RE.Addend) >= INT32_MIN && in resolveRelocation()
294 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
[all …]
H A DRuntimeDyldCOFFI386.h62 uint64_t Addend = 0; in processRelocationRef() local
72 Addend = readBytesUnaligned(Displacement, 4); in processRelocationRef()
85 << TargetName << " Addend " << Addend << "\n"); in processRelocationRef()
106 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
119 getSymbolOffset(*Symbol) + Addend); in processRelocationRef()
146 RE.Addend); in resolveRelocation()
160 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend) - in resolveRelocation()
176 Result = Result - Section.getLoadAddress() + RE.Addend - 4 - RE.Offset; in resolveRelocation()
200 assert(static_cast<uint64_t>(RE.Addend) <= UINT32_MAX && in resolveRelocation()
204 << RE.Addend << '\n'); in resolveRelocation()
[all …]
H A DRuntimeDyldELFMips.h33 uint32_t Value, uint32_t Type, int32_t Addend);
35 uint64_t Value, uint32_t Type, int64_t Addend,
38 uint64_t Value, uint32_t Type, int64_t Addend,
46 uint64_t Addend);
57 uint32_t Type, int64_t Addend,
H A DRuntimeDyldMachOX86_64.h52 RE.Addend = memcpyAddend(RE); in processRelocationRef()
77 RE.Addend = Value.Offset; in processRelocationRef()
110 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
117 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
135 Value.Offset -= RE.Addend; in processGOTRelocation()
154 MachO::X86_64_RELOC_UNSIGNED, RE.Addend, true, 2); in processGOTRelocation()
171 int64_t Addend = in processSubtractRelocation() local
197 Addend += SecB.getAddress(); in processSubtractRelocation()
223 Addend -= SecA.getAddress(); in processSubtractRelocation()
226 RelocationEntry R(SectionID, Offset, MachO::X86_64_RELOC_SUBTRACTOR, (uint64_t)Addend, in processSubtractRelocation()
H A DRuntimeDyldMachOI386.h69 RE.Addend = memcpyAddend(RE); in processRelocationRef()
89 RE.Addend = Value.Offset; in processRelocationRef()
112 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
120 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
159 uint64_t Addend = readBytesUnaligned(LocalAddress, NumBytes); in processSECTDIFFRelocation() local
193 Addend -= AddrA - AddrB; in processSECTDIFFRelocation()
196 << ", AddrB: " << AddrB << ", Addend: " << Addend in processSECTDIFFRelocation()
200 RelocationEntry R(SectionID, Offset, RelocType, Addend, SectionAID, in processSECTDIFFRelocation()
H A DRuntimeDyldMachOARM.h163 RE.Addend = *AddendOrErr; in processRelocationRef()
194 RE.Addend = Value.Offset; in processRelocationRef()
221 Value += RE.Addend; in resolveRelocation()
240 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
245 Value += RE.Addend; in resolveRelocation()
265 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
406 int64_t Addend = FullImmVal - (AddrA - AddrB); in processHALFSECTDIFFRelocation() local
412 << ", AddrB: " << AddrB << ", Addend: " << Addend in processHALFSECTDIFFRelocation()
416 RelocationEntry R(SectionID, Offset, RelocType, Addend, SectionAID, in processHALFSECTDIFFRelocation()
/freebsd-12.1/contrib/llvm/tools/lld/ELF/
H A DRelocations.cpp208 Offset, Addend, &Sym}); in handleTlsRelocation()
224 Offset, Addend, &Sym}); in handleTlsRelocation()
271 Offset, Addend, &Sym}); in handleTlsRelocation()
280 Offset, Addend, &Sym}); in handleTlsRelocation()
632 int64_t Addend; in computeAddend() local
636 Addend = getAddend<ELFT>(Rel); in computeAddend()
643 Addend += getPPC64TocBase(); in computeAddend()
647 return Addend; in computeAddend()
846 int64_t Addend) { in processRelocAux() argument
882 In.MipsGot->addEntry(*Sec.File, Sym, Addend, Expr); in processRelocAux()
[all …]
H A DSymbols.cpp44 static uint64_t getSymVA(const Symbol &Sym, int64_t &Addend) { in getSymVA() argument
77 Offset += Addend; in getSymVA()
78 Addend = 0; in getSymVA()
119 uint64_t Symbol::getVA(int64_t Addend) const { in getVA()
120 uint64_t OutVA = getSymVA(*this, Addend); in getVA()
121 return OutVA + Addend; in getVA()
H A DInputSection.cpp446 int64_t Addend = getAddend<ELFT>(Rel); in copyRelocations() local
449 Addend = Target->getImplicitAddend(BufLoc, Type); in copyRelocations()
464 Addend += Sec->getFile<ELFT>()->MipsGp0; in copyRelocations()
553 static Relocation *getRISCVPCRelHi20(const Symbol *Sym, uint64_t Addend) { in getRISCVPCRelHi20() argument
557 if (Addend != 0) in getRISCVPCRelHi20()
795 int64_t Addend = getAddend<ELFT>(Rel); in relocateNonAlloc() local
797 Addend += Target->getImplicitAddend(BufLoc, Type); in relocateNonAlloc()
822 SignExtend64<Bits>(Sym.getVA(Addend - Offset))); in relocateNonAlloc()
845 uint64_t TargetVA = SignExtend64(Rel.Sym->getVA(Rel.Addend), Bits); in relocateNonAllocForRelocatable()
1237 uint64_t Addend = Offset - Piece.InputOff; in getParentOffset() local
[all …]
H A DSyntheticSections.h196 void addEntry(InputFile &File, Symbol &Sym, int64_t Addend, RelExpr Expr);
201 int64_t Addend) const;
203 int64_t Addend) const;
407 uint64_t OffsetInSec, bool UseSymVA, Symbol *Sym, int64_t Addend) in DynamicReloc() argument
409 UseSymVA(UseSymVA), Addend(Addend), OutputSec(nullptr) {} in DynamicReloc()
415 int64_t Addend) in DynamicReloc() argument
417 UseSymVA(false), Addend(Addend), OutputSec(OutputSec) {} in DynamicReloc()
439 int64_t Addend; variable
481 uint64_t OffsetInSec, Symbol *Sym, int64_t Addend, RelExpr Expr,
/freebsd-12.1/contrib/llvm/include/llvm/MC/
H A DMCELFObjectWriter.h36 uint64_t Addend; // The addend to use. member
41 uint64_t Addend, const MCSymbolELF *OriginalSymbol, in ELFRelocationEntry()
43 : Offset(Offset), Symbol(Symbol), Type(Type), Addend(Addend), in ELFRelocationEntry()
48 << ", Addend=" << Addend << ", OriginalSymbol=" << OriginalSymbol in print()
/freebsd-12.1/sys/dev/pms/RefTisa/sat/api/
H A Dtdsmapi.h85 sbit32 volatile *Addend
91 sbit32 volatile *Addend
119 sbit32 volatile *Addend
125 sbit32 volatile *Addend
/freebsd-12.1/contrib/llvm/tools/lld/include/lld/Core/
H A DReference.h79 typedef int64_t Addend; typedef
93 virtual Addend addend() const = 0;
96 virtual void setAddend(Addend) = 0;
H A DSimple.h120 Reference::Addend a) in SimpleReference()
134 Addend addend() const override { return _addend; } in addend()
135 void setAddend(Addend a) override { _addend = a; } in setAddend()
141 Addend _addend;
204 const Atom *target, Reference::Addend a) override { in addReference()
/freebsd-12.1/contrib/compiler-rt/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
/freebsd-12.1/contrib/llvm/lib/Object/
H A DELF.cpp373 uint64_t Addend = 0; in android_relas() local
401 Addend += ReadSLEB(); in android_relas()
404 Addend = 0; in android_relas()
412 Addend += ReadSLEB(); in android_relas()
413 R.r_addend = Addend; in android_relas()
/freebsd-12.1/sys/dev/pms/RefTisa/tisa/api/
H A Dostiapi.h173 sbit32 volatile *Addend
179 sbit32 volatile *Addend
209 sbit32 volatile *Addend
215 sbit32 volatile *Addend
/freebsd-12.1/contrib/llvm/lib/MC/
H A DMCExpr.cpp509 const MCSymbolRefExpr *&B, int64_t &Addend) { in AttemptToFoldSymbolOffsetDifference() argument
524 Addend += (SA.getOffset() - SB.getOffset()); in AttemptToFoldSymbolOffsetDifference()
529 Addend |= 1; in AttemptToFoldSymbolOffsetDifference()
534 Addend |= 1; in AttemptToFoldSymbolOffsetDifference()
552 Addend += Layout->getSymbolOffset(A->getSymbol()) - in AttemptToFoldSymbolOffsetDifference()
555 Addend += (Addrs->lookup(&SecA) - Addrs->lookup(&SecB)); in AttemptToFoldSymbolOffsetDifference()
560 Addend |= 1; in AttemptToFoldSymbolOffsetDifference()
565 Addend |= 1; in AttemptToFoldSymbolOffsetDifference()

1234