Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/tools/lld/ELF/
H A DTarget.h30 virtual RelType getDynRel(RelType Type) const { return Type; } in getDynRel()
95 RelType CopyRel;
96 RelType GotRel;
97 RelType NoneRel;
98 RelType PltRel;
99 RelType RelativeRel;
100 RelType IRelativeRel;
101 RelType TlsDescRel;
102 RelType TlsGotRel;
103 RelType TlsModuleIndexRel;
[all …]
H A DTarget.cpp43 std::string lld::toString(RelType Type) { in toString()
126 int64_t TargetInfo::getImplicitAddend(const uint8_t *Buf, RelType Type) const { in getImplicitAddend()
130 bool TargetInfo::usesOnlyLowPageBits(RelType Type) const { return false; } in usesOnlyLowPageBits()
132 bool TargetInfo::needsThunk(RelExpr Expr, RelType Type, const InputFile *File, in needsThunk()
142 bool TargetInfo::inBranchRange(RelType Type, uint64_t Src, uint64_t Dst) const { in inBranchRange()
150 RelExpr TargetInfo::adjustRelaxExpr(RelType Type, const uint8_t *Data, in adjustRelaxExpr()
159 void TargetInfo::relaxTlsGdToLe(uint8_t *Loc, RelType Type, in relaxTlsGdToLe()
164 void TargetInfo::relaxTlsGdToIe(uint8_t *Loc, RelType Type, in relaxTlsGdToIe()
169 void TargetInfo::relaxTlsIeToLe(uint8_t *Loc, RelType Type, in relaxTlsIeToLe()
174 void TargetInfo::relaxTlsLdToLe(uint8_t *Loc, RelType Type, in relaxTlsLdToLe()
H A DRelocations.cpp103 static unsigned handleMipsTlsRelocation(RelType Type, Symbol &Sym, in handleMipsTlsRelocation()
134 static unsigned handleARMTlsRelocation(RelType Type, Symbol &Sym, in handleARMTlsRelocation()
143 auto AddTlsReloc = [&](uint64_t Off, RelType Type, Symbol *Dest, bool Dyn) { in handleARMTlsRelocation()
180 handleTlsRelocation(RelType Type, Symbol &Sym, InputSectionBase &C, in handleTlsRelocation()
299 static RelType getMipsPairType(RelType Type, bool IsLocal) { in getMipsPairType()
605 RelType Type = Rel.getType(Config->IsMips64EL); in computeMipsAddend()
633 RelType Type = Rel.getType(Config->IsMips64EL); in computeAddend()
690 RelType Type = 0; in getMipsN32RelType()
747 RelType Type) { in addRelativeReloc()
863 } else if (RelType Rel = Target->getDynRel(Type)) { in processRelocAux()
[all …]
H A DThunks.cpp82 bool isCompatibleWith(RelType Type) const override;
111 bool isCompatibleWith(RelType Type) const override;
400 bool ARMThunk::isCompatibleWith(RelType Type) const { in isCompatibleWith()
437 bool ThumbThunk::isCompatibleWith(RelType Type) const { in isCompatibleWith()
722 static Thunk *addThunkAArch64(RelType Type, Symbol &S) { in addThunkAArch64()
735 static Thunk *addThunkPreArmv7(RelType Reloc, Symbol &S) { in addThunkPreArmv7()
755 static Thunk *addThunkV6M(RelType Reloc, Symbol &S) { in addThunkV6M()
769 static Thunk *addThunkArm(RelType Reloc, Symbol &S) { in addThunkArm()
810 static Thunk *addThunkMips(RelType Type, Symbol &S) { in addThunkMips()
818 static Thunk *addThunkPPC64(RelType Type, Symbol &S) { in addThunkPPC64()
[all …]
/freebsd-12.1/contrib/llvm/tools/lld/ELF/Arch/
H A DAArch64.cpp35 RelExpr getRelExpr(RelType Type, const Symbol &S,
37 RelType getDynRel(RelType Type) const override;
42 bool needsThunk(RelExpr Expr, RelType Type, const InputFile *File,
45 bool inBranchRange(RelType Type, uint64_t Src, uint64_t Dst) const override;
46 bool usesOnlyLowPageBits(RelType Type) const override;
47 void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override;
48 RelExpr adjustRelaxExpr(RelType Type, const uint8_t *Data,
78 RelExpr AArch64::getRelExpr(RelType Type, const Symbol &S, in getRelExpr()
122 RelExpr AArch64::adjustRelaxExpr(RelType Type, const uint8_t *Data, in adjustRelaxExpr()
132 bool AArch64::usesOnlyLowPageBits(RelType Type) const { in usesOnlyLowPageBits()
[all …]
H A DX86.cpp27 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;
37 void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override;
39 RelExpr adjustRelaxExpr(RelType Type, const uint8_t *Data,
41 void relaxTlsGdToIe(uint8_t *Loc, RelType Type, uint64_t Val) const override;
72 RelExpr X86::getRelExpr(RelType Type, const Symbol &S, in getRelExpr()
155 RelExpr X86::adjustRelaxExpr(RelType Type, const uint8_t *Data, in adjustRelaxExpr()
182 RelType X86::getDynRel(RelType Type) const { in getDynRel()
242 int64_t X86::getImplicitAddend(const uint8_t *Buf, RelType Type) const { in getImplicitAddend()
[all …]
H A DX86_64.cpp29 RelExpr getRelExpr(RelType Type, const Symbol &S,
31 RelType getDynRel(RelType Type) const override;
37 void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override;
39 RelExpr adjustRelaxExpr(RelType Type, const uint8_t *Data,
78 RelExpr X86_64<ELFT>::getRelExpr(RelType Type, const Symbol &S, in getRelExpr()
169 template <class ELFT> RelType X86_64<ELFT>::getDynRel(RelType Type) const { in getDynRel()
177 void X86_64<ELFT>::relaxTlsGdToLe(uint8_t *Loc, RelType Type, in relaxTlsGdToLe()
200 void X86_64<ELFT>::relaxTlsGdToIe(uint8_t *Loc, RelType Type, in relaxTlsGdToIe()
225 void X86_64<ELFT>::relaxTlsIeToLe(uint8_t *Loc, RelType Type, in relaxTlsIeToLe()
268 void X86_64<ELFT>::relaxTlsLdToLe(uint8_t *Loc, RelType Type, in relaxTlsLdToLe()
[all …]
H A DPPC64.cpp107 RelExpr getRelExpr(RelType Type, const Symbol &S,
112 void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override;
114 bool needsThunk(RelExpr Expr, RelType Type, const InputFile *File,
118 RelExpr adjustRelaxExpr(RelType Type, const uint8_t *Data,
413 RelExpr PPC64::getRelExpr(RelType Type, const Symbol &S, in getRelExpr()
529 static std::pair<RelType, uint64_t> toAddr16Rel(RelType Type, uint64_t Val) { in toAddr16Rel()
601 static bool isTocOptType(RelType Type) { in isTocOptType()
614 void PPC64::relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const { in relocateOne()
618 RelType OriginalType = Type; in relocateOne()
744 bool PPC64::needsThunk(RelExpr Expr, RelType Type, const InputFile *File, in needsThunk()
[all …]
H A DARM.cpp30 RelExpr getRelExpr(RelType Type, const Symbol &S,
32 RelType getDynRel(RelType Type) const override;
33 int64_t getImplicitAddend(const uint8_t *Buf, RelType Type) const override;
41 bool needsThunk(RelExpr Expr, RelType Type, const InputFile *File,
44 bool inBranchRange(RelType Type, uint64_t Src, uint64_t Dst) const override;
45 void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override;
84 RelExpr ARM::getRelExpr(RelType Type, const Symbol &S, in getRelExpr()
148 RelType ARM::getDynRel(RelType Type) const { in getDynRel()
265 bool ARM::needsThunk(RelExpr Expr, RelType Type, const InputFile *File, in needsThunk()
379 void ARM::relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const { in relocateOne()
[all …]
H A DMips.cpp32 RelExpr getRelExpr(RelType Type, const Symbol &S,
34 int64_t getImplicitAddend(const uint8_t *Buf, RelType Type) const override;
35 RelType getDynRel(RelType Type) const override;
40 bool needsThunk(RelExpr Expr, RelType Type, const InputFile *File,
42 void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override;
43 bool usesOnlyLowPageBits(RelType Type) const override;
81 RelExpr MIPS<ELFT>::getRelExpr(RelType Type, const Symbol &S, in getRelExpr()
183 template <class ELFT> RelType MIPS<ELFT>::getDynRel(RelType Type) const { in getDynRel()
436 calculateMipsRelChain(uint8_t *Loc, RelType Type, uint64_t Val) { in calculateMipsRelChain()
449 RelType Type2 = (Type >> 8) & 0xff; in calculateMipsRelChain()
[all …]
H A DAVR.cpp47 RelExpr getRelExpr(RelType Type, const Symbol &S,
49 void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override;
55 RelExpr AVR::getRelExpr(RelType Type, const Symbol &S, in getRelExpr()
60 void AVR::relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const { in relocateOne()
H A DPPC.cpp25 void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override;
26 RelExpr getRelExpr(RelType Type, const Symbol &S,
37 RelExpr PPC::getRelExpr(RelType Type, const Symbol &S, in getRelExpr()
51 void PPC::relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const { in relocateOne()
H A DMSP430.cpp37 RelExpr getRelExpr(RelType Type, const Symbol &S,
39 void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override;
48 RelExpr MSP430::getRelExpr(RelType Type, const Symbol &S, in getRelExpr()
63 void MSP430::relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const { in relocateOne()
H A DAMDGPU.cpp29 void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override;
30 RelExpr getRelExpr(RelType Type, const Symbol &S,
60 void AMDGPU::relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const { in relocateOne()
82 RelExpr AMDGPU::getRelExpr(RelType Type, const Symbol &S, in getRelExpr()
H A DSPARCV9.cpp27 RelExpr getRelExpr(RelType Type, const Symbol &S,
31 void relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const override;
50 RelExpr SPARCV9::getRelExpr(RelType Type, const Symbol &S, in getRelExpr()
76 void SPARCV9::relocateOne(uint8_t *Loc, RelType Type, uint64_t Val) const { in relocateOne()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp980 switch (RelType) { in getMatchingLoRelocation()
1196 if (RelType == ELF::R_AARCH64_CALL26 || RelType == ELF::R_AARCH64_JUMP26) { in processRelocationRef()
1213 if (RelType == ELF::R_ARM_PC24 || RelType == ELF::R_ARM_CALL || in processRelocationRef()
1225 RelType, 0); in processRelocationRef()
1249 if (RelType == ELF::R_ARM_PREL31 || RelType == ELF::R_ARM_TARGET1 || in processRelocationRef()
1252 } else if (RelType == ELF::R_ARM_MOVW_ABS_NC || RelType == ELF::R_ARM_MOVT_ABS) { in processRelocationRef()
1309 } else if (RelType == ELF::R_MIPS_HI16 || RelType == ELF::R_MIPS_PCHI16) { in processRelocationRef()
1313 } else if (RelType == ELF::R_MIPS_LO16 || RelType == ELF::R_MIPS_PCLO16) { in processRelocationRef()
1319 RelType == getMatchingLoRelocation(Reloc.RelType) && in processRelocationRef()
1555 switch (RelType) { in processRelocationRef()
[all …]
H A DRuntimeDyldImpl.h41 #define UNIMPLEMENTED_RELOC(RelType) \ argument
42 case RelType: \
43 return make_error<RuntimeDyldError>("Unimplemented relocation: " #RelType)
128 uint32_t RelType; 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()
173 : SectionID(id), Offset(offset), RelType(type), in RelocationEntry()
184 : SectionID(id), Offset(offset), RelType(type), in RelocationEntry()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOAArch64.h41 switch (RE.RelType) { in decodeAddend()
47 << getRelocName(RE.RelType); in decodeAddend()
59 << getRelocName(RE.RelType); in decodeAddend()
77 switch (RE.RelType) { in decodeAddend()
159 switch (RelType) { in encodeAddend()
177 switch (RelType) { in encodeAddend()
308 if (RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) { in processRelocationRef()
344 RE.RelType == MachO::ARM64_RELOC_POINTER_TO_GOT) in processRelocationRef()
361 MachO::RelocationInfoType RelType = in resolveRelocation() local
362 static_cast<MachO::RelocationInfoType>(RE.RelType); in resolveRelocation()
[all …]
H A DRuntimeDyldCOFFX86_64.h91 switch (RE.RelType) { in resolveRelocation()
102 uint64_t Delta = 4 + (RE.RelType - COFF::IMAGE_REL_AMD64_REL32); in resolveRelocation()
179 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub()
185 RelType = COFF::IMAGE_REL_AMD64_ADDR64; in generateRelocationStub()
187 return std::make_tuple(Offset, RelType, Addend); in generateRelocationStub()
209 uint64_t RelType = RelI->getType(); in processRelocationRef() local
220 switch (RelType) { in processRelocationRef()
233 std::tie(Offset, RelType, Addend) = generateRelocationStub( in processRelocationRef()
234 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef()
250 << " RelType: " << RelType << " TargetName: " in processRelocationRef()
[all …]
H A DRuntimeDyldMachOARM.h68 switch (RE.RelType) { in decodeAddend()
110 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local
135 if (RelType == MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef()
138 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef()
146 switch (RelType) { in processRelocationRef()
154 if (RelType > MachO::ARM_RELOC_HALF_SECTDIFF) in processRelocationRef()
177 if (RE.RelType == MachO::ARM_THUMB_RELOC_BR22) in processRelocationRef()
190 if (RE.RelType == MachO::ARM_RELOC_BR24 || in processRelocationRef()
191 RE.RelType == MachO::ARM_THUMB_RELOC_BR22) in processRelocationRef()
219 switch (RE.RelType) { in resolveRelocation()
[all …]
H A DRuntimeDyldCOFFThumb.h77 uint64_t RelType = RelI->getType(); in processRelocationRef() local
86 switch (RelType) { in processRelocationRef()
106 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef()
119 switch (RelType) { in processRelocationRef()
126 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
133 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
140 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef()
145 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef()
152 SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
161 RelocationEntry(SectionID, Offset, RelType, in processRelocationRef()
[all …]
H A DRuntimeDyldCOFFI386.h58 uint64_t RelType = RelI->getType(); in processRelocationRef() local
67 switch (RelType) { in processRelocationRef()
89 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef()
98 switch (RelType) { in processRelocationRef()
106 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef()
113 RelocationEntry(TargetSectionID, Offset, RelType, 0); in processRelocationRef()
118 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef()
136 switch (RE.RelType) { in resolveRelocation()
H A DRuntimeDyldELFMips.cpp19 resolveMIPSO32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend); in resolveRelocation()
21 resolveMIPSN32Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
24 resolveMIPSN64Relocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
35 Value = evaluateMIPS64Relocation(Section, RE.Offset, Value, RE.RelType, in evaluateRelocation()
47 RE.RelType); in applyRelocation()
284 uint32_t RelType = r_type; in resolveMIPSN64Relocation() local
286 RelType, Addend, in resolveMIPSN64Relocation()
289 RelType = r_type2; in resolveMIPSN64Relocation()
290 CalculatedValue = evaluateMIPS64Relocation(Section, Offset, 0, RelType, in resolveMIPSN64Relocation()
295 RelType = r_type3; in resolveMIPSN64Relocation()
[all …]
H A DRuntimeDyldMachOI386.h43 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local
46 if (RelType == MachO::GENERIC_RELOC_SECTDIFF || in processRelocationRef()
47 RelType == MachO::GENERIC_RELOC_LOCAL_SECTDIFF) in processRelocationRef()
50 else if (RelType == MachO::GENERIC_RELOC_VANILLA) in processRelocationRef()
53 "type: " + Twine(RelType)).str()); in processRelocationRef()
56 switch (RelType) { in processRelocationRef()
61 if (RelType > MachO::GENERIC_RELOC_TLV) in processRelocationRef()
63 Twine(RelType) + in processRelocationRef()
110 switch (RE.RelType) { in resolveRelocation()
H A DRuntimeDyldMachOX86_64.h43 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef() local
45 if (RelType == MachO::X86_64_RELOC_SUBTRACTOR) in processRelocationRef()
63 switch (RelType) { in processRelocationRef()
66 if (RelType > MachO::X86_64_RELOC_TLV) in processRelocationRef()
68 Twine(RelType) + in processRelocationRef()
73 if (RE.RelType == MachO::X86_64_RELOC_GOT || in processRelocationRef()
74 RE.RelType == MachO::X86_64_RELOC_GOT_LOAD) in processRelocationRef()
101 switch (RE.RelType) { in resolveRelocation()

12