Home
last modified time | relevance | path

Searched refs:RelType (Results 1 – 25 of 37) sorted by relevance

12

/freebsd-12-stable/contrib/llvm-project/lld/ELF/
DTarget.h19 std::string toString(elf::RelType type);
29 virtual RelExpr getRelExpr(RelType type, const Symbol &s,
31 virtual RelType getDynRel(RelType type) const { return 0; } in getDynRel()
36 virtual int64_t getImplicitAddend(const uint8_t *buf, RelType type) const;
37 virtual int getTlsGdRelaxSkip(RelType type) const { return 1; } in getTlsGdRelaxSkip()
60 virtual bool usesOnlyLowPageBits(RelType type) const;
64 virtual bool needsThunk(RelExpr expr, RelType relocType,
82 virtual bool inBranchRange(RelType type, uint64_t src,
87 void relocateNoSym(uint8_t *loc, RelType type, uint64_t val) const { in relocateNoSym()
114 RelType copyRel;
[all …]
DTarget.cpp43 std::string lld::toString(RelType type) { in toString()
132 int64_t TargetInfo::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
138 bool TargetInfo::usesOnlyLowPageBits(RelType type) const { return false; } in usesOnlyLowPageBits()
140 bool TargetInfo::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk()
151 bool TargetInfo::inBranchRange(RelType type, uint64_t src, uint64_t dst) const { in inBranchRange()
155 RelExpr TargetInfo::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr()
159 RelExpr TargetInfo::adjustGotPcExpr(RelType type, int64_t addend, in adjustGotPcExpr()
DSyntheticSections.h449 DynamicReloc(RelType type, const InputSectionBase *inputSec, in DynamicReloc()
455 DynamicReloc(RelType type, const InputSectionBase *inputSec,
461 DynamicReloc(RelType type, const InputSectionBase *inputSec, in DynamicReloc()
479 RelType type;
526 void addSymbolReloc(RelType dynType, InputSectionBase *isec,
528 llvm::Optional<RelType> addendRelType = llvm::None);
531 void addRelativeReloc(RelType dynType, InputSectionBase *isec,
533 RelType addendRelType, RelExpr expr);
536 void addAddendOnlyRelocIfNonPreemptible(RelType dynType,
539 RelType addendRelType);
[all …]
/freebsd-12-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
DRuntimeDyldELF.cpp998 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
1049 void RuntimeDyldELF::processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType,… in processSimpleRelocation() argument
1050 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processSimpleRelocation()
1057 uint32_t RuntimeDyldELF::getMatchingLoRelocation(uint32_t RelType, in getMatchingLoRelocation() argument
1059 switch (RelType) { in getMatchingLoRelocation()
1131 unsigned RelType = RelI->getType(); in resolveAArch64Branch() local
1137 RelType, 0); in resolveAArch64Branch()
1172 RelType, 0); in resolveAArch64Branch()
1182 uint64_t RelType = RelI->getType(); in processRelocationRef() local
1198 LLVM_DEBUG(dbgs() << "\t\tRelType: " << RelType << " Addend: " << Addend in processRelocationRef()
[all …]
DRuntimeDyldImpl.h39 #define UNIMPLEMENTED_RELOC(RelType) \ argument
40 case RelType: \
41 return make_error<RuntimeDyldError>("Unimplemented relocation: " #RelType)
126 uint32_t RelType; 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()
171 : SectionID(id), Offset(offset), RelType(type), in RelocationEntry()
182 : SectionID(id), Offset(offset), RelType(type), in RelocationEntry()
/freebsd-12-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOAArch64.h40 switch (RE.RelType) { in decodeAddend()
46 << getRelocName(RE.RelType); in decodeAddend()
58 << getRelocName(RE.RelType); in decodeAddend()
76 switch (RE.RelType) { in decodeAddend()
156 MachO::RelocationInfoType RelType, int64_t Addend) const { in encodeAddend() argument
158 switch (RelType) { in encodeAddend()
176 switch (RelType) { in encodeAddend()
307 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef()
333 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef()
341 if (RE.RelType == MachO::ARM64_RELOC_GOT_LOAD_PAGE21 || in processRelocationRef()
[all …]
DRuntimeDyldCOFFX86_64.h91 switch (RE.RelType) { in resolveRelocation()
102 uint64_t Delta = 4 + (RE.RelType - COFF::IMAGE_REL_AMD64_REL32); in resolveRelocation()
145 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument
178 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub()
184 RelType = COFF::IMAGE_REL_AMD64_ADDR64; in generateRelocationStub()
186 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub()
208 uint64_t RelType = RelI->getType(); in processRelocationRef() local
237 switch (RelType) { in processRelocationRef()
250 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef()
251 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef()
[all …]
DRuntimeDyldMachOARM.h67 switch (RE.RelType) { in decodeAddend()
109 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local
134 if (RelType == MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef()
137 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef()
145 switch (RelType) { in processRelocationRef()
153 if (RelType > MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef()
155 Twine(RelType) + in processRelocationRef()
176 if (RE.RelType == MachO::ARM_THUMB_RELOC_BR22) in processRelocationRef()
181 (RE.RelType == MachO::ARM_THUMB_RELOC_BR22) ? 4 : 8); in processRelocationRef()
185 if (!Value.SymbolName && (RelType == MachO::ARM_RELOC_BR24 || in processRelocationRef()
[all …]
DRuntimeDyldCOFFThumb.h79 uint64_t RelType = RelI->getType(); in processRelocationRef() local
88 switch (RelType) { in processRelocationRef()
121 if (RelType != COFF::IMAGE_REL_ARM_SECTION) in processRelocationRef()
126 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef()
134 switch (RelType) { in processRelocationRef()
141 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
148 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
155 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef()
161 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
167 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
[all …]
DRuntimeDyldCOFFI386.h58 uint64_t RelType = RelI->getType(); in processRelocationRef() local
74 if (RelType != COFF::IMAGE_REL_I386_SECTION) in processRelocationRef()
84 switch (RelType) { in processRelocationRef()
105 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef()
109 switch (RelType) { in processRelocationRef()
117 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
124 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef()
130 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
146 switch (RE.RelType) { in resolveRelocation()
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()
34 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation()
46 RE.RelType); in applyRelocation()
283 uint32_t RelType = r_type; in resolveMIPSN64Relocation() local
285 RelType, Addend, in resolveMIPSN64Relocation()
288 RelType = r_type2; in resolveMIPSN64Relocation()
289 CalculatedValue = evaluateMIPS64Relocation(Section, Offset, 0, RelType, in resolveMIPSN64Relocation()
294 RelType = r_type3; in resolveMIPSN64Relocation()
[all …]
DRuntimeDyldCOFFAArch64.h101 uint64_t Offset, uint64_t RelType, uint64_t Addend, in generateRelocationStub() argument
128 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub()
136 RelType = INTERNAL_REL_ARM64_LONG_BRANCH26; in generateRelocationStub()
138 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub()
161 uint64_t RelType = RelI->getType(); in processRelocationRef() local
191 switch (RelType) { in processRelocationRef()
203 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef()
204 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef()
247 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
250 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
[all …]
DRuntimeDyldMachOI386.h42 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local
45 if (RelType == MachO::GENERIC_RELOC_SECTDIFF || in processRelocationRef()
46 RelType == MachO::GENERIC_RELOC_LOCAL_SECTDIFF) in processRelocationRef()
49 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef()
52 "type: " + Twine(RelType)).str()); in processRelocationRef()
55 switch (RelType) { in processRelocationRef()
60 if (RelType > MachO::GENERIC_RELOC_TLV) in processRelocationRef()
62 Twine(RelType) + in processRelocationRef()
109 switch (RE.RelType) { in resolveRelocation()
DRuntimeDyldMachOX86_64.h42 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local
44 if (RelType == MachO::X86_64_RELOC_SUBTRACTOR) in processRelocationRef()
62 switch (RelType) { in processRelocationRef()
65 if (RelType > MachO::X86_64_RELOC_TLV) in processRelocationRef()
67 Twine(RelType) + in processRelocationRef()
72 if (RE.RelType == MachO::X86_64_RELOC_GOT || in processRelocationRef()
73 RE.RelType == MachO::X86_64_RELOC_GOT_LOAD) in processRelocationRef()
100 switch (RE.RelType) { in resolveRelocation()
/freebsd-12-stable/contrib/llvm-project/lld/ELF/Arch/
DPPC.cpp27 RelExpr getRelExpr(RelType type, const Symbol &s,
29 RelType getDynRel(RelType type) const override;
30 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override;
42 bool needsThunk(RelExpr expr, RelType relocType, const InputFile *file,
46 bool inBranchRange(RelType type, uint64_t src, uint64_t dst) const override;
49 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override;
50 int getTlsGdRelaxSkip(RelType type) const override;
198 bool PPC::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk()
211 bool PPC::inBranchRange(RelType type, uint64_t src, uint64_t dst) const { in inBranchRange()
218 RelExpr PPC::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
[all …]
DAArch64.cpp34 RelExpr getRelExpr(RelType type, const Symbol &s,
36 RelType getDynRel(RelType type) const override;
37 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override;
42 bool needsThunk(RelExpr expr, RelType type, const InputFile *file,
46 bool inBranchRange(RelType type, uint64_t src, uint64_t dst) const override;
47 bool usesOnlyLowPageBits(RelType type) const override;
50 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override;
83 RelExpr AArch64::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
165 RelExpr AArch64::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr()
174 bool AArch64::usesOnlyLowPageBits(RelType type) const { in usesOnlyLowPageBits()
[all …]
DMips.cpp29 RelExpr getRelExpr(RelType type, const Symbol &s,
31 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override;
32 RelType getDynRel(RelType type) const override;
37 bool needsThunk(RelExpr expr, RelType type, const InputFile *file,
42 bool usesOnlyLowPageBits(RelType type) const override;
80 RelExpr MIPS<ELFT>::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
202 template <class ELFT> RelType MIPS<ELFT>::getDynRel(RelType type) const { in getDynRel()
360 bool MIPS<ELFT>::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk()
384 int64_t MIPS<ELFT>::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
484 calculateMipsRelChain(uint8_t *loc, RelType type, uint64_t val) { in calculateMipsRelChain()
[all …]
DAMDGPU.cpp34 RelExpr getRelExpr(RelType type, const Symbol &s,
36 RelType getDynRel(RelType type) const override;
153 RelExpr AMDGPU::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
176 RelType AMDGPU::getDynRel(RelType type) const { in getDynRel()
DX86.cpp26 int getTlsGdRelaxSkip(RelType type) const override;
27 RelExpr getRelExpr(RelType type, const Symbol &s,
29 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override;
31 RelType getDynRel(RelType type) const override;
40 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override;
73 int X86::getTlsGdRelaxSkip(RelType type) const { in getTlsGdRelaxSkip()
77 RelExpr X86::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
163 RelExpr X86::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr()
189 RelType X86::getDynRel(RelType type) const { in getDynRel()
244 int64_t X86::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
DPPC64.cpp190 bool elf::isPPC64SmallCodeModelTocReloc(RelType type) { in isPPC64SmallCodeModelTocReloc()
367 int getTlsGdRelaxSkip(RelType type) const override;
369 RelExpr getRelExpr(RelType type, const Symbol &s,
371 RelType getDynRel(RelType type) const override;
372 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override;
381 bool needsThunk(RelExpr expr, RelType type, const InputFile *file,
385 bool inBranchRange(RelType type, uint64_t src, uint64_t dst) const override;
386 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override;
387 RelExpr adjustGotPcExpr(RelType type, int64_t addend,
609 int PPC64::getTlsGdRelaxSkip(RelType type) const { in getTlsGdRelaxSkip()
[all …]
DARM.cpp29 RelExpr getRelExpr(RelType type, const Symbol &s,
31 RelType getDynRel(RelType type) const override;
32 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override;
40 bool needsThunk(RelExpr expr, RelType type, const InputFile *file,
44 bool inBranchRange(RelType type, uint64_t src, uint64_t dst) const override;
86 RelExpr ARM::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
165 RelType ARM::getDynRel(RelType type) const { in getDynRel()
280 bool ARM::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk()
352 bool ARM::inBranchRange(RelType type, uint64_t src, uint64_t dst) const { in inBranchRange()
383 static void stateChangeWarning(uint8_t *loc, RelType relt, const Symbol &s) { in stateChangeWarning()
[all …]
DHexagon.cpp30 RelExpr getRelExpr(RelType type, const Symbol &s,
32 RelType getDynRel(RelType type) const override;
91 RelExpr Hexagon::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
382 RelType Hexagon::getDynRel(RelType type) const { in getDynRel()
DX86_64.cpp29 int getTlsGdRelaxSkip(RelType type) const override;
30 RelExpr getRelExpr(RelType type, const Symbol &s,
32 RelType getDynRel(RelType type) const override;
41 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override;
45 RelExpr adjustGotPcExpr(RelType type, int64_t addend,
102 int X86_64::getTlsGdRelaxSkip(RelType type) const { return 2; } in getTlsGdRelaxSkip()
314 RelExpr X86_64::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
417 RelType X86_64::getDynRel(RelType type) const { in getDynRel()
686 int64_t X86_64::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
789 RelExpr X86_64::adjustGotPcExpr(RelType type, int64_t addend, in adjustGotPcExpr()
DRISCV.cpp27 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override;
34 RelType getDynRel(RelType type) const override;
35 RelExpr getRelExpr(RelType type, const Symbol &s,
138 int64_t RISCV::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
217 RelType RISCV::getDynRel(RelType type) const { in getDynRel()
219 : static_cast<RelType>(R_RISCV_NONE); in getDynRel()
222 RelExpr RISCV::getRelExpr(const RelType type, const Symbol &s, in getRelExpr()
DMSP430.cpp36 RelExpr getRelExpr(RelType type, const Symbol &s,
48 RelExpr MSP430::getRelExpr(RelType type, const Symbol &s, in getRelExpr()

12