Home
last modified time | relevance | path

Searched refs:RelType (Results 1 – 25 of 41) sorted by path

12

/freebsd/contrib/llvm-project/lld/ELF/
H A DARMErrataFix.cpp436 RelType patchRelType = R_ARM_THM_JUMP24; in implementPatch()
466 RelType type; in implementPatch()
H A DInputSection.cpp398 RelType type = rel.type; in copyRelocations()
492 static uint32_t getARMUndefinedRelativeWeakVA(RelType type, uint32_t a, in getARMUndefinedRelativeWeakVA()
669 uint64_t InputSectionBase::getRelocTargetVA(const InputFile *file, RelType type, in getRelocTargetVA()
920 const RelType type = rel.getType(config->isMips64EL); in relocateNonAlloc()
H A DInputSection.h119 std::unique_ptr<RelType[]> relocTypes;
225 static uint64_t getRelocTargetVA(const InputFile *File, RelType Type,
H A DRelocations.cpp165 static RelType getMipsPairType(RelType type, bool isLocal) { in getMipsPairType()
498 RelType type = rel.getType(config->isMips64EL); in computeMipsAddend()
858 RelType RelocationScanner::getMipsN32RelType(RelTy *&rel) const { in getMipsN32RelType()
859 RelType type = 0; in getMipsN32RelType()
871 RelType type) { in addRelativeReloc()
1139 RelType rel = target->getDynRel(type); in processAux()
1245 static unsigned handleMipsTlsRelocation(RelType type, Symbol &sym, in handleMipsTlsRelocation()
1268 static unsigned handleTlsRelocation(RelType type, Symbol &sym, in handleTlsRelocation()
1403 RelType type; in scanOne()
1506 RelType type = rel.getType(false); in checkPPC64TLSRelax()
[all …]
H A DRelocations.h25 using RelType = uint32_t; variable
123 RelType type;
H A DSyntheticSections.cpp1619 RelType dynType, InputSectionBase &isec, uint64_t offsetInSec, Symbol &sym, in addSymbolReloc()
1620 int64_t addend, std::optional<RelType> addendRelType) { in addSymbolReloc()
1626 RelType dynType, GotSection &sec, uint64_t offsetInSec, Symbol &sym, in addAddendOnlyRelocIfNonPreemptible()
1627 RelType addendRelType) { in addAddendOnlyRelocIfNonPreemptible()
1650 const RelType relativeRel = target->relativeRel; in partitionRels()
H A DSyntheticSections.h427 DynamicReloc(RelType type, const InputSectionBase *inputSec, in DynamicReloc()
433 DynamicReloc(RelType type, const InputSectionBase *inputSec,
439 DynamicReloc(RelType type, const InputSectionBase *inputSec, in DynamicReloc()
464 RelType type;
503 void addSymbolReloc(RelType dynType, InputSectionBase &isec,
505 std::optional<RelType> addendRelType = {});
512 void addRelativeReloc(RelType dynType, InputSectionBase &isec, in addRelativeReloc()
514 RelType addendRelType, RelExpr expr) { in addRelativeReloc()
521 void addAddendOnlyRelocIfNonPreemptible(RelType dynType, GotSection &sec,
523 RelType addendRelType);
[all …]
H A DTarget.cpp43 std::string lld::toString(RelType type) { in toString()
127 int64_t TargetInfo::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
133 bool TargetInfo::usesOnlyLowPageBits(RelType type) const { return false; } in usesOnlyLowPageBits()
135 bool TargetInfo::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk()
146 bool TargetInfo::inBranchRange(RelType type, uint64_t src, uint64_t dst) const { in inBranchRange()
150 RelExpr TargetInfo::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr()
154 RelExpr TargetInfo::adjustGotPcExpr(RelType type, int64_t addend, in adjustGotPcExpr()
H A DTarget.h35 virtual RelType getDynRel(RelType type) const { return 0; } in getDynRel()
125 RelType copyRel;
126 RelType gotRel;
127 RelType pltRel;
128 RelType relativeRel;
129 RelType iRelativeRel;
130 RelType symbolicRel;
131 RelType tlsDescRel;
132 RelType tlsGotRel;
133 RelType tlsModuleIndexRel;
[all …]
H A DThunks.cpp1257 static Thunk *addThunkAArch64(RelType type, Symbol &s, int64_t a) { in addThunkAArch64()
1274 static Thunk *addThunkArmv4(RelType reloc, Symbol &s, int64_t a) { in addThunkArmv4()
1309 static Thunk *addThunkArmv5v6(RelType reloc, Symbol &s, int64_t a) { in addThunkArmv5v6()
1329 static Thunk *addThunkV6M(const InputSection &isec, RelType reloc, Symbol &s, in addThunkV6M()
1353 static Thunk *addThunkArm(const InputSection &isec, RelType reloc, Symbol &s, in addThunkArm()
1398 static Thunk *addThunkAVR(RelType type, Symbol &s, int64_t a) { in addThunkAVR()
1408 static Thunk *addThunkMips(RelType type, Symbol &s) { in addThunkMips()
1426 static Thunk *addThunkPPC64(RelType type, Symbol &s, int64_t a) { in addThunkPPC64()
/freebsd/contrib/llvm-project/lld/ELF/Arch/
H A DAArch64.cpp35 RelExpr getRelExpr(RelType type, const Symbol &s,
37 RelType getDynRel(RelType type) const override;
38 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override;
44 bool needsThunk(RelExpr expr, RelType type, const InputFile *file,
48 bool inBranchRange(RelType type, uint64_t src, uint64_t dst) const override;
49 bool usesOnlyLowPageBits(RelType type) const override;
52 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override;
93 RelExpr AArch64::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
179 RelExpr AArch64::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr()
188 bool AArch64::usesOnlyLowPageBits(RelType type) const { in usesOnlyLowPageBits()
[all …]
H A DAMDGPU.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;
158 RelExpr AMDGPU::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
181 RelType AMDGPU::getDynRel(RelType type) const { in getDynRel()
187 int64_t AMDGPU::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
H A DARM.cpp33 RelExpr getRelExpr(RelType type, const Symbol &s,
35 RelType getDynRel(RelType type) const override;
36 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override;
44 bool needsThunk(RelExpr expr, RelType type, const InputFile *file,
48 bool inBranchRange(RelType type, uint64_t src, uint64_t dst) const override;
99 RelExpr ARM::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
200 RelType ARM::getDynRel(RelType type) const { in getDynRel()
310 bool ARM::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk()
386 bool ARM::inBranchRange(RelType type, uint64_t src, uint64_t dst) const { in inBranchRange()
417 static void stateChangeWarning(uint8_t *loc, RelType relt, const Symbol &s) { in stateChangeWarning()
[all …]
H A DAVR.cpp48 RelExpr getRelExpr(RelType type, const Symbol &s,
50 bool needsThunk(RelExpr expr, RelType type, const InputFile *file,
58 RelExpr AVR::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
106 bool AVR::needsThunk(RelExpr expr, RelType type, const InputFile *file, in needsThunk()
H A DHexagon.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;
91 RelExpr Hexagon::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
384 RelType Hexagon::getDynRel(RelType type) const { in getDynRel()
390 int64_t Hexagon::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
H A DLoongArch.cpp28 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,
37 bool usesOnlyLowPageBits(RelType type) const override;
90 uint64_t elf::getLoongArchPageDelta(uint64_t dest, uint64_t pc, RelType type) { in getLoongArchPageDelta()
274 int64_t LoongArch::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
367 RelType LoongArch::getDynRel(RelType type) const { in getDynRel()
369 : static_cast<RelType>(R_LARCH_NONE); in getDynRel()
372 RelExpr LoongArch::getRelExpr(const RelType type, const Symbol &s, in getRelExpr()
505 bool LoongArch::usesOnlyLowPageBits(RelType type) const { in usesOnlyLowPageBits()
H A DMSP430.cpp35 RelExpr getRelExpr(RelType type, const Symbol &s,
47 RelExpr MSP430::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
H A DMips.cpp28 RelExpr getRelExpr(RelType type, const Symbol &s,
31 RelType getDynRel(RelType type) const override;
36 bool needsThunk(RelExpr expr, RelType type, const InputFile *file,
41 bool usesOnlyLowPageBits(RelType type) const override;
77 RelExpr MIPS<ELFT>::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
200 template <class ELFT> RelType MIPS<ELFT>::getDynRel(RelType type) const { in getDynRel()
495 RelType type2 = (type >> 8) & 0xff; in calculateMipsRelChain()
496 RelType type3 = (type >> 16) & 0xff; in calculateMipsRelChain()
508 static bool isBranchReloc(RelType type) { in isBranchReloc()
513 static bool isMicroBranchReloc(RelType type) { in isMicroBranchReloc()
[all …]
H A DPPC.cpp30 RelExpr getRelExpr(RelType type, const Symbol &s,
32 RelType getDynRel(RelType type) const override;
45 bool needsThunk(RelExpr expr, RelType relocType, const InputFile *file,
52 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override;
53 int getTlsGdRelaxSkip(RelType type) const override;
218 RelExpr PPC::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
272 RelType PPC::getDynRel(RelType type) const { in getDynRel()
299 static std::pair<RelType, uint64_t> fromDTPREL(RelType type, uint64_t val) { in fromDTPREL()
318 RelType newType; in relocate()
386 RelExpr PPC::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr()
[all …]
H A DPPC64.cpp172 int getTlsGdRelaxSkip(RelType type) const override;
174 RelExpr getRelExpr(RelType type, const Symbol &s,
176 RelType getDynRel(RelType type) const override;
192 RelExpr adjustGotPcExpr(RelType type, int64_t addend,
619 int PPC64::getTlsGdRelaxSkip(RelType type) const { in getTlsGdRelaxSkip()
992 RelExpr PPC64::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
1106 RelType PPC64::getDynRel(RelType type) const { in getDynRel()
1174 static std::pair<RelType, uint64_t> toAddr16Rel(RelType type, uint64_t val) { in toAddr16Rel()
1246 static bool isTocOptType(RelType type) { in isTocOptType()
1260 RelType type = rel.type; in relocate()
[all …]
H A DRISCV.cpp34 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override;
41 RelType getDynRel(RelType type) const override;
42 RelExpr getRelExpr(RelType type, const Symbol &s,
173 int64_t RISCV::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
258 RelType RISCV::getDynRel(RelType type) const { in getDynRel()
260 : static_cast<RelType>(R_RISCV_NONE); in getDynRel()
263 RelExpr RISCV::getRelExpr(const RelType type, const Symbol &s, in getRelExpr()
692 std::make_unique<RelType[]>(sec->relocs().size()); in initSymbolAnchors()
988 } else if (RelType newType = aux.relocTypes[i]) { in finalizeRelax()
H A DSPARCV9.cpp25 RelExpr getRelExpr(RelType type, const Symbol &s,
48 RelExpr SPARCV9::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
H A DSystemZ.cpp27 int getTlsGdRelaxSkip(RelType type) const override;
28 RelExpr getRelExpr(RelType type, const Symbol &s,
30 RelType getDynRel(RelType type) const override;
38 RelExpr adjustTlsExpr(RelType type, RelExpr expr) const override;
39 RelExpr adjustGotPcExpr(RelType type, int64_t addend,
44 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override;
83 RelExpr SystemZ::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
270 RelType SystemZ::getDynRel(RelType type) const { in getDynRel()
276 RelExpr SystemZ::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr()
282 int SystemZ::getTlsGdRelaxSkip(RelType type) const { in getTlsGdRelaxSkip()
[all …]
H A 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;
67 int X86::getTlsGdRelaxSkip(RelType type) const { in getTlsGdRelaxSkip()
72 RelExpr X86::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
154 RelExpr X86::adjustTlsExpr(RelType type, RelExpr expr) const { in adjustTlsExpr()
181 RelType X86::getDynRel(RelType type) const { in getDynRel()
236 int64_t X86::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
H A DX86_64.cpp30 int getTlsGdRelaxSkip(RelType type) const override;
31 RelExpr getRelExpr(RelType type, const Symbol &s,
33 RelType getDynRel(RelType type) const override;
42 int64_t getImplicitAddend(const uint8_t *buf, RelType type) const override;
45 RelExpr adjustGotPcExpr(RelType type, int64_t addend,
94 int X86_64::getTlsGdRelaxSkip(RelType type) const { in getTlsGdRelaxSkip()
349 RelExpr X86_64::getRelExpr(RelType type, const Symbol &s, in getRelExpr()
452 RelType X86_64::getDynRel(RelType type) const { in getDynRel()
708 int64_t X86_64::getImplicitAddend(const uint8_t *buf, RelType type) const { in getImplicitAddend()
857 RelExpr X86_64::adjustGotPcExpr(RelType type, int64_t addend, in adjustGotPcExpr()

12