/freebsd/contrib/llvm-project/lld/ELF/ |
H A D | Relocations.h | 284 template <class RelTy> struct Relocs : ArrayRef<RelTy> { 286 Relocs(ArrayRef<RelTy> a) : ArrayRef<RelTy>(a) {} in Relocs() 309 template <typename RelTy> 310 inline Relocs<RelTy> sortRels(Relocs<RelTy> rels, 311 SmallVector<RelTy, 0> &storage) { 312 auto cmp = [](const RelTy &a, const RelTy &b) { 318 rels = Relocs<RelTy>(storage);
|
H A D | ICF.cpp | 105 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); 237 template <class RelTy> 238 bool ICF<ELFT>::constantEq(const InputSection *secA, Relocs<RelTy> ra, in constantEq() 239 const InputSection *secB, Relocs<RelTy> rb) { in constantEq() 337 template <class RelTy> [all …]
|
H A D | DWARF.cpp | 77 template <class RelTy> struct LLDRelocationResolver { 104 template <class RelTy> 107 ArrayRef<RelTy> rels) const { in findAux() 109 partition_point(rels, [=](const RelTy &a) { return a.r_offset < pos; }); in findAux() 112 const RelTy &rel = *it; in findAux() 132 0, LLDRelocationResolver<RelTy>::resolve}; in findAux()
|
H A D | MarkLive.cpp | 57 template <class RelTy> 58 void resolveReloc(InputSectionBase &sec, RelTy &rel, bool fromFDE); 60 template <class RelTy> 61 void scanEhFrameSection(EhInputSection &eh, ArrayRef<RelTy> rels); 96 template <class RelTy> 97 void MarkLive<ELFT>::resolveReloc(InputSectionBase &sec, RelTy &rel, in resolveReloc() 149 template <class RelTy> 151 ArrayRef<RelTy> rels) { in scanEhFrameSection()
|
H A D | Relocations.cpp | 472 template <class RelTy> RelType getMipsN32RelType(RelTy *&rel) const; 473 template <class ELFT, class RelTy> 474 int64_t computeMipsAddend(const RelTy &rel, RelExpr expr, bool isLocal) const; 479 template <class ELFT, class RelTy> 480 void scanOne(typename Relocs<RelTy>::const_iterator &i); 481 template <class ELFT, class RelTy> void scan(Relocs<RelTy> rels); 489 template <class ELFT, class RelTy> 490 int64_t RelocationScanner::computeMipsAddend(const RelTy &rel, RelExpr expr, in computeMipsAddend() 498 if (RelTy::HasAddend) in computeMipsAddend() 511 for (const RelTy *ri = &rel; ri != static_cast<const RelTy *>(end); ++ri) in computeMipsAddend() [all …]
|
H A D | InputSection.cpp | 399 template <class ELFT, class RelTy> 406 copyRelocations<ELFT, RelTy>(buf, llvm::make_range(sec->relocations.begin(), in copyRelocations() 413 Relocation operator()(const RelTy &rel) const { in copyRelocations() 420 using RawRels = ArrayRef<RelTy>; in copyRelocations() 424 RawRels rawRels = getDataAs<RelTy>(); in copyRelocations() 427 copyRelocations<ELFT, RelTy>(buf, rels); in copyRelocations() 434 template <class ELFT, class RelTy, class RelIt> 447 buf += sizeof(RelTy); in copyRelocations() 449 if (RelTy::HasAddend) in copyRelocations() 490 if (!RelTy::HasAddend) in copyRelocations() [all …]
|
H A D | InputSection.h | 383 template <class ELFT, class RelTy> void split(ArrayRef<RelTy> rels); 427 template <class ELFT, class RelTy> 428 void relocateNonAlloc(uint8_t *buf, Relocs<RelTy> rels); 443 template <class ELFT, class RelTy> void copyRelocations(uint8_t *buf); 445 template <class ELFT, class RelTy, class RelIt>
|
H A D | DWARF.h | 82 template <class RelTy> 85 ArrayRef<RelTy> rels) const;
|
H A D | SyntheticSections.h | 83 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); 918 template <class RelTy> 921 Relocs<RelTy> rels);
|
H A D | SyntheticSections.cpp | 387 template <class ELFT, class RelTy> 388 CieRecord *EhFrameSection::addCie(EhSectionPiece &cie, ArrayRef<RelTy> rels) { in addCie() 408 template <class ELFT, class RelTy> 409 Defined *EhFrameSection::isFdeLive(EhSectionPiece &fde, ArrayRef<RelTy> rels) { in isFdeLive() 421 const RelTy &rel = rels[firstRelI]; in isFdeLive() 436 template <class ELFT, class RelTy> 437 void EhFrameSection::addRecords(EhInputSection *sec, ArrayRef<RelTy> rels) { in addRecords() 468 template <class ELFT, class RelTy> 470 EhInputSection &sec, ArrayRef<RelTy> rels, DenseSet<size_t> &ciesWithLSDA, in iterateFDEWithLSDAAux() 3206 template <class RelTy> [all …]
|
H A D | Writer.cpp | 381 template <class ELFT, class RelTy> 383 llvm::ArrayRef<RelTy> rels) { in markUsedLocalSymbolsImpl() 384 for (const RelTy &rel : rels) { in markUsedLocalSymbolsImpl()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/ |
H A D | XCOFFDumper.cpp | 67 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 D | RuntimeDyldELF.cpp | 2535 unsigned RelTy = R.getType(); in relocationNeedsGot() local 2537 return RelTy == ELF::R_AARCH64_ADR_GOT_PAGE || in relocationNeedsGot() 2538 RelTy == ELF::R_AARCH64_LD64_GOT_LO12_NC; in relocationNeedsGot() 2541 return RelTy == ELF::R_X86_64_GOTPCREL || in relocationNeedsGot() 2542 RelTy == ELF::R_X86_64_GOTPCRELX || in relocationNeedsGot() 2543 RelTy == ELF::R_X86_64_GOT64 || in relocationNeedsGot() 2544 RelTy == ELF::R_X86_64_REX_GOTPCRELX; in relocationNeedsGot()
|