| /freebsd/contrib/llvm-project/lld/ELF/ |
| H A D | DWARF.cpp | 104 ArrayRef<RelTy> rels) const { in findAux() 106 partition_point(rels, [=](const RelTy &a) { return a.r_offset < pos; }); in findAux() 107 if (it == rels.end() || it->r_offset != pos) in findAux() 137 const RelsOrRelas<ELFT> rels = in find() local 139 if (rels.areRelocsRel()) in find() 140 return findAux(*sec.sec, pos, rels.rels); in find() 141 return findAux(*sec.sec, pos, rels.relas); in find()
|
| H A D | MarkLive.cpp | 74 void scanEhFrameSection(EhInputSection &eh, ArrayRef<RelTy> rels); 191 ArrayRef<RelTy> rels) { in scanEhFrameSection() argument 194 resolveReloc(eh, rels[cie.firstRelocation], false); in scanEhFrameSection() 200 for (size_t j = firstRelI, end2 = rels.size(); in scanEhFrameSection() 201 j < end2 && rels[j].r_offset < pieceEnd; ++j) in scanEhFrameSection() 202 resolveReloc(eh, rels[j], true); in scanEhFrameSection() 364 const RelsOrRelas<ELFT> rels = in run() local 366 if (rels.areRelocsRel()) in run() 367 scanEhFrameSection(*eh, rels.rels); in run() 368 else if (rels.relas.size()) in run() [all …]
|
| H A D | ICF.cpp | 331 ? constantEq(a, ra.rels, b, rb.rels) in equalsConstant() 383 ? variableEq(a, ra.rels, b, rb.rels) in equalsVariable() 451 Relocs<RelTy> rels) { in combineRelocHashes() argument 453 for (RelTy rel : rels) { in combineRelocHashes() 502 const RelsOrRelas<ELFT> rels = s->template relsOrRelas<ELFT>(); in run() local 503 if (rels.areRelocsCrel()) in run() 504 combineRelocHashes(cnt, s, rels.crels); in run() 505 else if (rels.areRelocsRel()) in run() 506 combineRelocHashes(cnt, s, rels.rels); in run() 508 combineRelocHashes(cnt, s, rels.relas); in run()
|
| H A D | Relocations.h | 346 inline Relocs<RelTy> sortRels(Relocs<RelTy> rels, 351 if (!llvm::is_sorted(rels, cmp)) { 352 storage.assign(rels.begin(), rels.end()); 354 rels = Relocs<RelTy>(storage); 356 return rels; 361 sortRels(Relocs<llvm::object::Elf_Crel_Impl<is64>> rels,
|
| H A D | InputSection.cpp | 182 ret.rels = {ArrayRef(reinterpret_cast<const typename ELFT::Rel *>(content), in relsOrRelas() 460 auto rels = llvm::make_range(MapRelIter(rawRels.begin(), mapRel), in copyRelocations() local 462 copyRelocations<ELFT, RelTy>(ctx, buf, rels); in copyRelocations() 471 llvm::iterator_range<RelIt> rels) { in copyRelocations() argument 476 for (const Relocation &rel : rels) { in copyRelocations() 1018 Relocs<RelTy> rels) { in relocateNonAlloc() argument 1040 for (auto it = rels.begin(), end = rels.end(); it != end; ++it) { in relocateNonAlloc() 1355 const RelsOrRelas<ELFT> rels = relsOrRelas<ELFT>(/*supportsCrel=*/false); in split() local 1358 if (rels.areRelocsRel()) { in split() 1360 split<ELFT>(sortRels(rels.rels, storage)); in split() [all …]
|
| H A D | InputSection.h | 38 Relocs<typename ELFT::Rel> rels; member 41 bool areRelocsRel() const { return rels.size(); } in areRelocsRel() 51 f(__VA_ARGS__, rs.rels); \ 401 template <class ELFT, class RelTy> void split(ArrayRef<RelTy> rels); 447 void relocateNonAlloc(Ctx &, uint8_t *buf, Relocs<RelTy> rels); 465 void copyRelocations(Ctx &, uint8_t *buf, llvm::iterator_range<RelIt> rels);
|
| H A D | Relocations.cpp | 476 template <class ELFT, class RelTy> void scan(Relocs<RelTy> rels); 1613 static void checkPPC64TLSRelax(InputSectionBase &sec, Relocs<RelTy> rels) { in checkPPC64TLSRelax() argument 1618 for (const RelTy &rel : rels) { in checkPPC64TLSRelax() 1647 void RelocationScanner::scan(Relocs<RelTy> rels) { in scan() argument 1649 sec->relocations.reserve(rels.size()); in scan() 1652 checkPPC64TLSRelax<RelTy>(*sec, rels); in scan() 1661 rels = sortRels(rels, storage); in scan() 1664 for (auto i = rels.begin(); i != rels.end();) in scan() 1668 end = static_cast<const void *>(rels.end()); in scan() 1669 for (auto i = rels.begin(); i != end;) in scan() [all …]
|
| H A D | DWARF.h | 86 ArrayRef<RelTy> rels) const;
|
| H A D | SyntheticSections.cpp | 407 CieRecord *EhFrameSection::addCie(EhSectionPiece &cie, ArrayRef<RelTy> rels) { in addCie() argument 411 personality = &cie.sec->file->getRelocTargetSym(rels[firstRelI]); in addCie() 428 Defined *EhFrameSection::isFdeLive(EhSectionPiece &fde, ArrayRef<RelTy> rels) { in isFdeLive() argument 440 const RelTy &rel = rels[firstRelI]; in isFdeLive() 456 void EhFrameSection::addRecords(EhInputSection *sec, ArrayRef<RelTy> rels) { in addRecords() argument 459 offsetToCie[cie.inputOff] = addCie<ELFT>(cie, rels); in addRecords() 466 if (!isFdeLive<ELFT>(fde, rels)) in addRecords() 477 const RelsOrRelas<ELFT> rels = in addSectionAux() local 479 if (rels.areRelocsRel()) in addSectionAux() 480 addRecords<ELFT>(sec, rels.rels); in addSectionAux() [all …]
|
| H A D | SyntheticSections.h | 84 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); 936 Relocs<RelTy> rels);
|
| H A D | Driver.cpp | 1081 ArrayRef<typename ELFT::Rel> rels = in processCallGraphRelocations() local 1082 CHECK(obj.rels(sec), "could not retrieve cg profile rel section"); in processCallGraphRelocations() 1083 for (const typename ELFT::Rel &rel : rels) in processCallGraphRelocations() 2610 const RelsOrRelas<ELFT> rels = s->template relsOrRelas<ELFT>(); in readSymbolPartitionSection() local 2611 auto readEntry = [](InputFile *file, const auto &rels) -> Symbol * { in readSymbolPartitionSection() argument 2612 for (const auto &rel : rels) in readSymbolPartitionSection() 2616 if (rels.areRelocsCrel()) in readSymbolPartitionSection() 2617 sym = readEntry(s->file, rels.crels); in readSymbolPartitionSection() 2618 else if (rels.areRelocsRel()) in readSymbolPartitionSection() 2619 sym = readEntry(s->file, rels.rels); in readSymbolPartitionSection() [all …]
|
| H A D | OutputSections.cpp | 690 auto rels = relSec->getDataAs<typename ELFT::Rela>(); in relToCrel() local 691 for (auto rel : rels) { in relToCrel() 696 return rels.size(); in relToCrel()
|
| H A D | Writer.cpp | 400 llvm::ArrayRef<RelTy> rels) { in markUsedLocalSymbolsImpl() argument 401 for (const RelTy &rel : rels) { in markUsedLocalSymbolsImpl()
|
| /freebsd/contrib/llvm-project/lld/ELF/Arch/ |
| H A D | LoongArch.cpp | 1427 MutableArrayRef<Relocation> rels = sec->relocs(); in finalizeRelax() local 1429 size_t newSize = old.size() - aux.relocDeltas[rels.size() - 1]; in finalizeRelax() 1440 for (size_t i = 0, e = rels.size(); i != e; ++i) { in finalizeRelax() 1447 Relocation &r = rels[i]; in finalizeRelax() 1499 for (size_t i = 0, e = rels.size(); i != e;) { in finalizeRelax() 1500 uint64_t cur = rels[i].offset; in finalizeRelax() 1502 rels[i].offset -= delta; in finalizeRelax() 1504 rels[i].type = aux.relocTypes[i]; in finalizeRelax() 1505 } while (++i != e && rels[i].offset == cur); in finalizeRelax()
|
| H A D | RISCV.cpp | 974 MutableArrayRef<Relocation> rels = sec->relocs(); in finalizeRelax() local 976 size_t newSize = old.size() - aux.relocDeltas[rels.size() - 1]; in finalizeRelax() 987 for (size_t i = 0, e = rels.size(); i != e; ++i) { in finalizeRelax() 994 const Relocation &r = rels[i]; in finalizeRelax() 1055 for (size_t i = 0, e = rels.size(); i != e;) { in finalizeRelax() 1056 uint64_t cur = rels[i].offset; in finalizeRelax() 1058 rels[i].offset -= delta; in finalizeRelax() 1060 rels[i].type = aux.relocTypes[i]; in finalizeRelax() 1061 } while (++i != e && rels[i].offset == cur); in finalizeRelax()
|
| H A D | AArch64.cpp | 1213 const RelsOrRelas<ELFT> rels = sec.relsOrRelas<ELFT>(); in addTaggedSymbolReferences() local 1214 if (rels.areRelocsRel()) in addTaggedSymbolReferences() 1218 for (const typename ELFT::Rela &rel : rels.relas) { in addTaggedSymbolReferences()
|
| /freebsd/contrib/file/magic/Magdir/ |
| H A D | msooxml | 38 >>0x1E regex \\[Content_Types\\]\\.xml|_rels/\\.rels|docProps|customXml|.*\\.md|.*\\.png
|
| /freebsd/contrib/llvm-project/lld/COFF/ |
| H A D | Writer.cpp | 2321 std::vector<RuntimePseudoReloc> rels; in createRuntimePseudoRelocs() local 2331 sc->getRuntimePseudoRelocs(rels); in createRuntimePseudoRelocs() 2337 for (const RuntimePseudoReloc &rpr : rels) in createRuntimePseudoRelocs() 2344 if (!rels.empty()) { in createRuntimePseudoRelocs() 2345 Log(ctx) << "Writing " << Twine(rels.size()) in createRuntimePseudoRelocs() 2357 PseudoRelocTableChunk *table = make<PseudoRelocTableChunk>(rels); in createRuntimePseudoRelocs()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | ELFLinkGraphBuilder.h | 681 auto RelEntries = Obj.rels(RelSect); in forEachRelRelocation()
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/ |
| H A D | ARMEHABIPrinter.h | 415 for (const Elf_Rel &R : unwrapOrError(FileName, ELF.rels(Sec))) { in FindExceptionTable()
|
| H A D | ELFDumper.cpp | 3292 Elf_Rel_Range Rels = unwrapOrError(FileName, Obj.rels(*PltRelSec)); in getPltSym() 6553 if (Expected<Elf_Rel_Range> RangeOrErr = Obj.rels(Sec)) { in forEachRelocationDo() 7790 Obj.rels(*CGRelSection); in getSymbolIndices()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
| H A D | ELF.h | 363 Expected<Elf_Rel_Range> rels(const Elf_Shdr &Sec) const { in rels() function
|
| /freebsd/sys/dev/cxgbe/ |
| H A D | t4_sge.c | 654 uint64_t refs, rels; in t4_sge_extfree_refs() local 656 rels = counter_u64_fetch(extfree_rels); in t4_sge_extfree_refs() 659 return (refs - rels); in t4_sge_extfree_refs()
|
| /freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/ |
| H A D | ELFObject.cpp | 1896 ElfFile.rels(*Shdr); in readSections()
|