Home
last modified time | relevance | path

Searched refs:RelTy (Results 1 – 13 of 13) sorted by relevance

/freebsd/contrib/llvm-project/lld/ELF/
H A DRelocations.h320 template <class RelTy> struct Relocs : ArrayRef<RelTy> {
322 Relocs(ArrayRef<RelTy> a) : ArrayRef<RelTy>(a) {} in Relocs()
345 template <typename RelTy>
346 inline Relocs<RelTy> sortRels(Relocs<RelTy> rels,
347 SmallVector<RelTy, 0> &storage) {
348 auto cmp = [](const RelTy &a, const RelTy &b) {
354 rels = Relocs<RelTy>(storage);
H A DICF.cpp105 template <class RelTy>
106 bool constantEq(const InputSection *a, Relocs<RelTy> relsA,
107 const InputSection *b, Relocs<RelTy> relsB);
109 template <class RelTy>
110 bool variableEq(const InputSection *a, Relocs<RelTy> relsA,
111 const InputSection *b, Relocs<RelTy> relsB);
238 template <class RelTy>
239 bool ICF<ELFT>::constantEq(const InputSection *secA, Relocs<RelTy> ra, in constantEq()
240 const InputSection *secB, Relocs<RelTy> rb) { in constantEq()
338 template <class RelTy>
[all …]
H A DDWARF.cpp74 template <class RelTy> struct LLDRelocationResolver {
101 template <class RelTy>
104 ArrayRef<RelTy> rels) const { in findAux()
106 partition_point(rels, [=](const RelTy &a) { return a.r_offset < pos; }); in findAux()
109 const RelTy &rel = *it; in findAux()
130 0, LLDRelocationResolver<RelTy>::resolve}; in findAux()
H A DMarkLive.cpp70 template <class RelTy>
71 void resolveReloc(InputSectionBase &sec, RelTy &rel, bool fromFDE);
73 template <class RelTy>
74 void scanEhFrameSection(EhInputSection &eh, ArrayRef<RelTy> rels);
116 template <class RelTy>
118 RelTy &rel, bool fromFDE) { in resolveReloc()
189 template <class RelTy>
191 ArrayRef<RelTy> rels) { in scanEhFrameSection()
H A DRelocations.cpp464 template <class RelTy> RelType getMipsN32RelType(RelTy *&rel) const;
465 template <class ELFT, class RelTy>
466 int64_t computeMipsAddend(const RelTy &rel, RelExpr expr, bool isLocal) const;
474 template <class ELFT, class RelTy>
475 void scanOne(typename Relocs<RelTy>::const_iterator &i);
476 template <class ELFT, class RelTy> void scan(Relocs<RelTy> rels);
484 template <class ELFT, class RelTy>
485 int64_t RelocationScanner::computeMipsAddend(const RelTy &rel, RelExpr expr, in computeMipsAddend()
493 if (RelTy::HasAddend) in computeMipsAddend()
506 for (const RelTy *ri = &rel; ri != static_cast<const RelTy *>(end); ++ri) in computeMipsAddend()
[all …]
H A DInputSection.h401 template <class ELFT, class RelTy> void split(ArrayRef<RelTy> rels);
446 template <class ELFT, class RelTy>
447 void relocateNonAlloc(Ctx &, uint8_t *buf, Relocs<RelTy> rels);
462 template <class ELFT, class RelTy> void copyRelocations(Ctx &, uint8_t *buf);
464 template <class ELFT, class RelTy, class RelIt>
H A DInputSection.cpp431 template <class ELFT, class RelTy>
439 copyRelocations<ELFT, RelTy>( in copyRelocations()
448 Relocation operator()(const RelTy &rel) const { in copyRelocations()
455 using RawRels = ArrayRef<RelTy>; in copyRelocations()
459 RawRels rawRels = getDataAs<RelTy>(); in copyRelocations()
462 copyRelocations<ELFT, RelTy>(ctx, buf, rels); in copyRelocations()
469 template <class ELFT, class RelTy, class RelIt>
482 buf += sizeof(RelTy); in copyRelocations()
484 if (RelTy::HasAddend) in copyRelocations()
525 if (!RelTy::HasAddend) in copyRelocations()
[all …]
H A DDWARF.h83 template <class RelTy>
86 ArrayRef<RelTy> rels) const;
H A DSyntheticSections.h83 template <class ELFT, class RelTy>
84 void addRecords(EhInputSection *s, llvm::ArrayRef<RelTy> rels);
86 template <class ELFT, class RelTy>
87 void iterateFDEWithLSDAAux(EhInputSection &sec, ArrayRef<RelTy> rels,
91 template <class ELFT, class RelTy>
92 CieRecord *addCie(EhSectionPiece &piece, ArrayRef<RelTy> rels);
94 template <class ELFT, class RelTy>
95 Defined *isFdeLive(EhSectionPiece &piece, ArrayRef<RelTy> rels);
933 template <class RelTy>
936 Relocs<RelTy> rels);
H A DSyntheticSections.cpp406 template <class ELFT, class RelTy>
407 CieRecord *EhFrameSection::addCie(EhSectionPiece &cie, ArrayRef<RelTy> rels) { in addCie()
427 template <class ELFT, class RelTy>
428 Defined *EhFrameSection::isFdeLive(EhSectionPiece &fde, ArrayRef<RelTy> rels) { in isFdeLive()
440 const RelTy &rel = rels[firstRelI]; in isFdeLive()
455 template <class ELFT, class RelTy>
456 void EhFrameSection::addRecords(EhInputSection *sec, ArrayRef<RelTy> rels) { in addRecords()
487 template <class ELFT, class RelTy>
489 EhInputSection &sec, ArrayRef<RelTy> rels, DenseSet<size_t> &ciesWithLSDA, in iterateFDEWithLSDAAux()
3295 template <class RelTy>
[all …]
H A DWriter.cpp398 template <class ELFT, class RelTy>
400 llvm::ArrayRef<RelTy> rels) { in markUsedLocalSymbolsImpl()
401 for (const RelTy &rel : rels) { in markUsedLocalSymbolsImpl()
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DXCOFFDumper.cpp67 template <typename RelTy> void printRelocation(RelTy Reloc);
68 template <typename Shdr, typename RelTy>
461 template <typename RelTy> void XCOFFDumper::printRelocation(RelTy Reloc) { in printRelocation()
487 template <typename Shdr, typename RelTy>
497 Expected<ArrayRef<RelTy>> ErrOrRelocations = Obj.relocations<Shdr, RelTy>(Sec); in printRelocations()
503 const ArrayRef<RelTy> Relocations = *ErrOrRelocations; in printRelocations()
511 for (const RelTy Reloc : Relocations) in printRelocations()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp2932 unsigned RelTy = R.getType(); in relocationNeedsGot() local
2934 return RelTy == ELF::R_AARCH64_ADR_GOT_PAGE || in relocationNeedsGot()
2935 RelTy == ELF::R_AARCH64_LD64_GOT_LO12_NC; in relocationNeedsGot()
2938 return RelTy == ELF::R_LARCH_GOT_PC_HI20 || in relocationNeedsGot()
2939 RelTy == ELF::R_LARCH_GOT_PC_LO12; in relocationNeedsGot()
2942 return RelTy == ELF::R_X86_64_GOTPCREL || in relocationNeedsGot()
2943 RelTy == ELF::R_X86_64_GOTPCRELX || in relocationNeedsGot()
2944 RelTy == ELF::R_X86_64_GOT64 || in relocationNeedsGot()
2945 RelTy == ELF::R_X86_64_REX_GOTPCRELX; in relocationNeedsGot()