Home
last modified time | relevance | path

Searched refs:rels (Results 1 – 24 of 24) sorted by relevance

/freebsd/contrib/llvm-project/lld/ELF/
H A DMarkLive.cpp61 void scanEhFrameSection(EhInputSection &eh, ArrayRef<RelTy> rels);
151 ArrayRef<RelTy> rels) { in scanEhFrameSection() argument
154 resolveReloc(eh, rels[cie.firstRelocation], false); in scanEhFrameSection()
160 for (size_t j = firstRelI, end2 = rels.size(); in scanEhFrameSection()
161 j < end2 && rels[j].r_offset < pieceEnd; ++j) in scanEhFrameSection()
162 resolveReloc(eh, rels[j], true); in scanEhFrameSection()
249 const RelsOrRelas<ELFT> rels = in run() local
251 if (rels.areRelocsRel()) in run()
252 scanEhFrameSection(*eh, rels.rels); in run()
253 else if (rels.relas.size()) in run()
[all …]
H A DDWARF.cpp107 ArrayRef<RelTy> rels) const { in findAux()
109 partition_point(rels, [=](const RelTy &a) { return a.r_offset < pos; }); in findAux()
110 if (it == rels.end() || it->r_offset != pos) in findAux()
139 const RelsOrRelas<ELFT> rels = in find() local
141 if (rels.areRelocsRel()) in find()
142 return findAux(*sec.sec, pos, rels.rels); in find()
143 return findAux(*sec.sec, pos, rels.relas); in find()
H A DICF.cpp330 ? constantEq(a, ra.rels, b, rb.rels) in equalsConstant()
382 ? variableEq(a, ra.rels, b, rb.rels) in equalsVariable()
448 Relocs<RelTy> rels) { in combineRelocHashes() argument
450 for (RelTy rel : rels) { in combineRelocHashes()
511 const RelsOrRelas<ELFT> rels = s->template relsOrRelas<ELFT>(); in run() local
512 if (rels.areRelocsCrel()) in run()
513 combineRelocHashes(cnt, s, rels.crels); in run()
514 else if (rels.areRelocsRel()) in run()
515 combineRelocHashes(cnt, s, rels.rels); in run()
517 combineRelocHashes(cnt, s, rels.relas); in run()
H A DRelocations.h310 inline Relocs<RelTy> sortRels(Relocs<RelTy> rels,
315 if (!llvm::is_sorted(rels, cmp)) {
316 storage.assign(rels.begin(), rels.end());
318 rels = Relocs<RelTy>(storage);
320 return rels;
325 sortRels(Relocs<llvm::object::Elf_Crel_Impl<is64>> rels,
H A DInputSection.cpp179 ret.rels = {ArrayRef(reinterpret_cast<const typename ELFT::Rel *>(content), in relsOrRelas()
425 auto rels = llvm::make_range(MapRelIter(rawRels.begin(), mapRel), in copyRelocations() local
427 copyRelocations<ELFT, RelTy>(buf, rels); in copyRelocations()
436 llvm::iterator_range<RelIt> rels) { in copyRelocations() argument
441 for (const Relocation &rel : rels) { in copyRelocations()
949 void InputSection::relocateNonAlloc(uint8_t *buf, Relocs<RelTy> rels) { in relocateNonAlloc() argument
971 for (auto it = rels.begin(), end = rels.end(); it != end; ++it) { in relocateNonAlloc()
1286 const RelsOrRelas<ELFT> rels = relsOrRelas<ELFT>(/*supportsCrel=*/false); in split() local
1289 if (rels.areRelocsRel()) { in split()
1291 split<ELFT>(sortRels(rels.rels, storage)); in split()
[all …]
H A DInputSection.h40 Relocs<typename ELFT::Rel> rels; member
43 bool areRelocsRel() const { return rels.size(); } in areRelocsRel()
53 f(__VA_ARGS__, rs.rels); \
383 template <class ELFT, class RelTy> void split(ArrayRef<RelTy> rels);
428 void relocateNonAlloc(uint8_t *buf, Relocs<RelTy> rels);
446 void copyRelocations(uint8_t *buf, llvm::iterator_range<RelIt> rels);
H A DRelocations.cpp481 template <class ELFT, class RelTy> void scan(Relocs<RelTy> rels);
1553 static void checkPPC64TLSRelax(InputSectionBase &sec, Relocs<RelTy> rels) { in checkPPC64TLSRelax() argument
1558 for (const RelTy &rel : rels) { in checkPPC64TLSRelax()
1585 void RelocationScanner::scan(Relocs<RelTy> rels) { in scan() argument
1587 sec->relocations.reserve(rels.size()); in scan()
1590 checkPPC64TLSRelax<RelTy>(*sec, rels); in scan()
1599 rels = sortRels(rels, storage); in scan()
1602 for (auto i = rels.begin(); i != rels.end();) in scan()
1606 end = static_cast<const void *>(rels.end()); in scan()
1607 for (auto i = rels.begin(); i != end;) in scan()
[all …]
H A DDWARF.h85 ArrayRef<RelTy> rels) const;
H A DSyntheticSections.cpp388 CieRecord *EhFrameSection::addCie(EhSectionPiece &cie, ArrayRef<RelTy> rels) { in addCie() argument
392 personality = &cie.sec->file->getRelocTargetSym(rels[firstRelI]); in addCie()
409 Defined *EhFrameSection::isFdeLive(EhSectionPiece &fde, ArrayRef<RelTy> rels) { in isFdeLive() argument
421 const RelTy &rel = rels[firstRelI]; in isFdeLive()
437 void EhFrameSection::addRecords(EhInputSection *sec, ArrayRef<RelTy> rels) { in addRecords() argument
440 offsetToCie[cie.inputOff] = addCie<ELFT>(cie, rels); in addRecords()
447 if (!isFdeLive<ELFT>(fde, rels)) in addRecords()
458 const RelsOrRelas<ELFT> rels = in addSectionAux() local
460 if (rels.areRelocsRel()) in addSectionAux()
461 addRecords<ELFT>(sec, rels.rels); in addSectionAux()
[all …]
H A DSyntheticSections.h84 void addRecords(EhInputSection *s, llvm::ArrayRef<RelTy> rels);
87 void iterateFDEWithLSDAAux(EhInputSection &sec, ArrayRef<RelTy> rels,
92 CieRecord *addCie(EhSectionPiece &piece, ArrayRef<RelTy> rels);
95 Defined *isFdeLive(EhSectionPiece &piece, ArrayRef<RelTy> rels);
921 Relocs<RelTy> rels);
H A DOutputSections.cpp669 auto rels = relSec->getDataAs<typename ELFT::Rela>(); in relToCrel() local
670 for (auto rel : rels) { in relToCrel()
675 return rels.size(); in relToCrel()
H A DDriver.cpp1011 ArrayRef<typename ELFT::Rel> rels = in processCallGraphRelocations() local
1012 CHECK(obj.rels(sec), "could not retrieve cg profile rel section"); in processCallGraphRelocations()
1013 for (const typename ELFT::Rel &rel : rels) in processCallGraphRelocations()
2430 const RelsOrRelas<ELFT> rels = s->template relsOrRelas<ELFT>(); in readSymbolPartitionSection() local
2431 if (rels.areRelocsRel()) in readSymbolPartitionSection()
2432 sym = &s->file->getRelocTargetSym(rels.rels[0]); in readSymbolPartitionSection()
2434 sym = &s->file->getRelocTargetSym(rels.relas[0]); in readSymbolPartitionSection()
H A DWriter.cpp383 llvm::ArrayRef<RelTy> rels) { in markUsedLocalSymbolsImpl() argument
384 for (const RelTy &rel : rels) { in markUsedLocalSymbolsImpl()
/freebsd/contrib/llvm-project/lld/ELF/Arch/
H A DLoongArch.cpp851 MutableArrayRef<Relocation> rels = sec->relocs(); in finalizeRelax() local
853 size_t newSize = old.size() - aux.relocDeltas[rels.size() - 1]; in finalizeRelax()
863 for (size_t i = 0, e = rels.size(); i != e; ++i) { in finalizeRelax()
870 const Relocation &r = rels[i]; in finalizeRelax()
882 for (size_t i = 0, e = rels.size(); i != e;) { in finalizeRelax()
883 uint64_t cur = rels[i].offset; in finalizeRelax()
885 rels[i].offset -= delta; in finalizeRelax()
887 rels[i].type = aux.relocTypes[i]; in finalizeRelax()
888 } while (++i != e && rels[i].offset == cur); in finalizeRelax()
H A DRISCV.cpp946 MutableArrayRef<Relocation> rels = sec->relocs(); in finalizeRelax() local
948 size_t newSize = old.size() - aux.relocDeltas[rels.size() - 1]; in finalizeRelax()
959 for (size_t i = 0, e = rels.size(); i != e; ++i) { in finalizeRelax()
966 const Relocation &r = rels[i]; in finalizeRelax()
1025 for (size_t i = 0, e = rels.size(); i != e;) { in finalizeRelax()
1026 uint64_t cur = rels[i].offset; in finalizeRelax()
1028 rels[i].offset -= delta; in finalizeRelax()
1030 rels[i].type = aux.relocTypes[i]; in finalizeRelax()
1031 } while (++i != e && rels[i].offset == cur); in finalizeRelax()
H A DAArch64.cpp1092 const RelsOrRelas<ELFT> rels = sec.relsOrRelas<ELFT>(); in addTaggedSymbolReferences() local
1093 if (rels.areRelocsRel()) in addTaggedSymbolReferences()
1096 for (const typename ELFT::Rela &rel : rels.relas) { in addTaggedSymbolReferences()
/freebsd/contrib/file/magic/Magdir/
H A Dmsooxml36 >>0x1E regex \\[Content_Types\\]\\.xml|_rels/\\.rels|docProps|customXml
/freebsd/contrib/llvm-project/lld/COFF/
H A DWriter.cpp2061 std::vector<RuntimePseudoReloc> rels; in createRuntimePseudoRelocs() local
2071 sc->getRuntimePseudoRelocs(rels); in createRuntimePseudoRelocs()
2077 for (const RuntimePseudoReloc &rpr : rels) in createRuntimePseudoRelocs()
2083 if (!rels.empty()) { in createRuntimePseudoRelocs()
2084 log("Writing " + Twine(rels.size()) + " runtime pseudo relocations"); in createRuntimePseudoRelocs()
2093 PseudoRelocTableChunk *table = make<PseudoRelocTableChunk>(rels); in createRuntimePseudoRelocs()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DELFLinkGraphBuilder.h680 auto RelEntries = Obj.rels(RelSect); in forEachRelRelocation()
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DARMEHABIPrinter.h415 for (const Elf_Rel &R : unwrapOrError(FileName, ELF.rels(Sec))) { in FindExceptionTable()
H A DELFDumper.cpp3229 Elf_Rel_Range Rels = unwrapOrError(FileName, Obj.rels(*PltRelSec)); in getPltSym()
6451 if (Expected<Elf_Rel_Range> RangeOrErr = Obj.rels(Sec)) { in forEachRelocationDo()
7675 Obj.rels(*CGRelSection); in getSymbolIndices()
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DELF.h357 Expected<Elf_Rel_Range> rels(const Elf_Shdr &Sec) const { in rels() function
/freebsd/sys/dev/cxgbe/
H A Dt4_sge.c624 uint64_t refs, rels; in t4_sge_extfree_refs() local
626 rels = counter_u64_fetch(extfree_rels); in t4_sge_extfree_refs()
629 return (refs - rels); in t4_sge_extfree_refs()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObject.cpp1899 ElfFile.rels(*Shdr); in readSections()