Home
last modified time | relevance | path

Searched refs:relocs (Results 1 – 25 of 61) sorted by relevance

123

/freebsd/contrib/llvm-project/lld/MachO/
H A DICF.cpp106 if (ia->relocs.size() != ib->relocs.size()) in equalsConstant()
170 return std::equal(ia->relocs.begin(), ia->relocs.end(), ib->relocs.begin(), in equalsConstant()
180 assert(ia->relocs.size() == ib->relocs.size()); in equalsVariable()
208 if (!std::equal(ia->relocs.begin(), ia->relocs.end(), ib->relocs.begin(), f)) in equalsVariable()
289 for (const Reloc &r : isec->relocs) { in run()
389 for (const Reloc &r : isec->relocs) { in markAddrSigSymbols()
445 for (const Reloc &r : isec->relocs) in foldIdenticalSections()
H A DConcatOutputSection.cpp135 for (Reloc &r : isec->relocs) { in needsThunks()
274 std::vector<Reloc> &relocs = isec->relocs; in finalize() local
277 assert(is_sorted(relocs, in finalize()
279 for (Reloc &r : reverse(relocs)) { in finalize()
H A DInputSection.cpp186 relocs, [=](const macho::Reloc &r) { return r.offset == off; }); in getRelocAt()
187 if (it == relocs.end()) in getRelocAt()
220 for (size_t i = 0; i < relocs.size(); i++) { in writeTo()
221 const Reloc &r = relocs[i]; in writeTo()
229 const Reloc &minuend = relocs[++i]; in writeTo()
H A DEhFrame.cpp139 isec->relocs.insert(isec->relocs.end(), newRelocs.begin(), newRelocs.end()); in commit()
H A DInputFiles.cpp633 subsec->relocs.push_back(r); in parseRelocations()
653 subsec->relocs.push_back(p); in parseRelocations()
1157 for (auto it = isec->relocs.begin(); it != isec->relocs.end();) { in registerCompactUnwind()
1212 it = isec->relocs.erase(it); in registerCompactUnwind()
1417 isec->relocs, [=](const Reloc &r) { return r.offset == cieOffOff; }); in registerEhFrames()
1419 if (cieOffRelocIt != isec->relocs.end()) { in registerEhFrames()
1466 auto funcAddrRelocIt = isec->relocs.end(); in registerEhFrames()
1467 auto lsdaAddrRelocIt = isec->relocs.end(); in registerEhFrames()
1468 for (auto it = isec->relocs.begin(); it != isec->relocs.end(); ++it) { in registerEhFrames()
1476 if (funcAddrRelocIt != isec->relocs.end()) { in registerEhFrames()
[all …]
H A DMarkLive.cpp159 for (const Reloc &r : isec->relocs) { in markTransitively()
177 for (const Reloc &r : isec->relocs) { in markTransitively()
H A DUnwindInfoSection.cpp236 for (size_t i = 0; i < isec->relocs.size(); ++i) { in prepareRelocations()
237 Reloc &r = isec->relocs[i]; in prepareRelocations()
391 for (const Reloc &r : d->unwindEntry()->relocs) { in relocateCompactUnwind()
H A DObjC.cpp217 for (const Reloc &r : methodsIsec->relocs) { in parseMethods()
342 for (const Reloc &r : isec->relocs) { in checkCategories()
552 if (isec->relocs.size()) in collectSectionWriteInfoFromIsec()
553 catWriteInfo.relocTemplate = isec->relocs[0]; in collectSectionWriteInfoFromIsec()
1142 refFrom->isec()->relocs.push_back(r); in createSymbolReference()
1155 for (auto &r : sec->relocs) { in collectNlCategories()
1492 llvm::erase_if(isec->relocs, removeAtOff); in eraseSymbolAtIsecOffset()
H A DSyntheticSections.cpp837 assert(isec->relocs.size() == 1); in initialize()
838 auto Reloc = isec->relocs[0]; in initialize()
864 objcSelref->relocs.push_back({/*type=*/target->unsignedRelocType, in makeSelRef()
1938 count += isec->relocs.size(); in getSize()
1945 for (const Reloc &rel : isec->relocs) { in writeTo()
1960 buf += isec->relocs.size() * sizeof(uint32_t); in writeTo()
1970 for (const Reloc &rel : isec->relocs) { in setUp()
/freebsd/contrib/llvm-project/lld/ELF/Arch/
H A DRISCV.cpp546 static bool relaxable(ArrayRef<Relocation> relocs, size_t i) { in relaxable() argument
547 return i + 1 != relocs.size() && relocs[i + 1].type == R_RISCV_RELAX; in relaxable()
601 const ArrayRef<Relocation> relocs = sec.relocs(); in relocateAlloc() local
602 for (size_t i = 0, size = relocs.size(); i != size; ++i) { in relocateAlloc()
603 const Relocation &rel = relocs[i]; in relocateAlloc()
628 tlsdescRelax = relaxable(relocs, i); in relocateAlloc()
639 tlsdescRelax = relaxable(relocs, i); in relocateAlloc()
659 const Relocation &rel1 = relocs[i + 1]; in relocateAlloc()
688 if (sec->relocs().size()) { in initSymbolAnchors()
690 std::make_unique<uint32_t[]>(sec->relocs().size()); in initSymbolAnchors()
[all …]
H A DAArch64.cpp64 AArch64Relaxer(ArrayRef<Relocation> relocs);
721 AArch64Relaxer::AArch64Relaxer(ArrayRef<Relocation> relocs) { in AArch64Relaxer() argument
727 const size_t size = relocs.size(); in AArch64Relaxer()
729 if (relocs[i].type == R_AARCH64_ADR_GOT_PAGE) { in AArch64Relaxer()
730 if (i + 1 < size && relocs[i + 1].type == R_AARCH64_LD64_GOT_LO12_NC) { in AArch64Relaxer()
735 } else if (relocs[i].type == R_AARCH64_LD64_GOT_LO12_NC) { in AArch64Relaxer()
878 AArch64Relaxer relaxer(sec.relocs()); in relocateAlloc()
879 for (size_t i = 0, size = sec.relocs().size(); i != size; ++i) { in relocateAlloc()
880 const Relocation &rel = sec.relocs()[i]; in relocateAlloc()
894 relaxer.tryRelaxAdrpLdr(rel, sec.relocs()[i + 1], secAddr, buf)) { in relocateAlloc()
[all …]
H A DX86_64.cpp157 unsigned size = is.relocs().size(); in getRelocationWithOffset()
159 if (is.relocs()[i].offset == offset && is.relocs()[i].expr != R_NONE) in getRelocationWithOffset()
253 if (rIndex == is.relocs().size()) in deleteFallThruJmpInsn()
256 Relocation &r = is.relocs()[rIndex]; in deleteFallThruJmpInsn()
281 if (rbIndex == is.relocs().size()) in deleteFallThruJmpInsn()
284 Relocation &rB = is.relocs()[rbIndex]; in deleteFallThruJmpInsn()
329 for (Relocation &rel : sec->relocs()) { in relaxOnce()
1041 for (const Relocation &rel : sec.relocs()) { in relocateAlloc()
H A DLoongArch.cpp748 const MutableArrayRef<Relocation> relocs = sec.relocs(); in relax() local
754 std::fill_n(aux.relocTypes.get(), relocs.size(), R_LARCH_NONE); in relax()
756 for (auto [i, r] : llvm::enumerate(relocs)) { in relax()
851 MutableArrayRef<Relocation> rels = sec->relocs(); in finalizeRelax()
/freebsd/contrib/llvm-project/lld/ELF/
H A DSyntheticSections.cpp748 g.relocs.insert({&sym, 0}); in addEntry()
766 return getPageEntriesNum() + local16.size() + global.size() + relocs.size() + in getEntriesNum()
783 count += relocs.size() + tls.size() + dynTlsSymbols.size() * 2; in getIndexedEntriesNum()
840 if (!primGot.relocs.empty()) in getFirstGlobalEntry()
841 return primGot.relocs.front().first; in getFirstGlobalEntry()
857 set_union(tmp.relocs, src.relocs); in tryMergeGots()
902 got.relocs.remove_if([&](const std::pair<Symbol *, size_t> &p) { in build()
914 set_union(primGot->relocs, got.global); in build()
915 set_union(primGot->relocs, got.relocs); in build()
916 got.relocs.clear(); in build()
[all …]
H A DSyntheticSections.h333 llvm::MapVector<Symbol *, size_t> relocs; member
505 relocs.push_back(reloc); in addReloc()
540 return !relocs.empty() || in isNeeded()
543 size_t getSize() const override { return relocs.size() * this->entsize; } in getSize()
556 SmallVector<DynamicReloc, 0> relocs; variable
602 return inputSec->getVA(inputSec->relocs()[relocIdx].offset); in getOffset()
614 return !relocs.empty() || in isNeeded()
617 SmallVector<RelativeReloc, 0> relocs; variable
920 llvm::DenseMap<uint32_t, uint32_t> &relocs,
H A DAArch64ErrataFix.cpp548 auto relIt = llvm::find_if(isec->relocs(), [=](const Relocation &r) { in implementPatch()
551 if (relIt != isec->relocs().end() && in implementPatch()
565 if (relIt != isec->relocs().end()) { in implementPatch()
H A DARMErrataFix.cpp184 if (!relocs().empty()) { in writeTo()
284 auto relIt = llvm::find_if(isec->relocs(), [=](const Relocation &r) { in scanCortexA8Errata657417()
289 if (relIt != isec->relocs().end()) in scanCortexA8Errata657417()
H A DRelocations.cpp904 {&isec, isec.relocs().size() - 1}); in addRelativeReloc()
906 part.relrDyn->relocs.push_back({&isec, isec.relocs().size() - 1}); in addRelativeReloc()
1165 part.relrAuthDyn->relocs.push_back({sec, sec->relocs().size() - 1}); in processAux()
1615 llvm::stable_sort(sec->relocs(), in scan()
2311 for (Relocation &rel : isec->relocs()) { in createThunks()
2371 for (Relocation &rel : isec->relocs()) in hexagonNeedsTLSSymbol()
2388 for (Relocation &rel : isec->relocs()) in hexagonTLSSymbolUpdate()
H A DTarget.cpp167 for (const Relocation &rel : sec.relocs()) { in relocateAlloc()
H A DInputSection.h257 MutableArrayRef<Relocation> relocs() { return relocations; } in relocs() function
258 ArrayRef<Relocation> relocs() const { return relocations; } in relocs() function
H A DWriter.cpp1484 part.relrAuthDyn->relocs, [&part](const RelativeReloc &elem) { in finalizeAddressDependentContent()
1485 const Relocation &reloc = elem.inputSec->relocs()[elem.relocIdx]; in finalizeAddressDependentContent()
1494 changed |= (it != part.relrAuthDyn->relocs.end()); in finalizeAddressDependentContent()
1495 part.relrAuthDyn->relocs.erase(it, part.relrAuthDyn->relocs.end()); in finalizeAddressDependentContent()
1870 for (DynamicReloc &reloc : part.relaDyn->relocs) in finalizeSections()
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DOpts.td29 def expand_relocs : FF<"expand-relocs", "Expand each shown relocation to multiple lines">;
35 def relocs : FF<"relocs", "Display the relocation entries in the file">;
119 def : FF<"relocations", "Alias for --relocs">, Alias<relocs>;
135 def : F<"r", "Alias for --relocs">, Alias<relocs>;
/freebsd/contrib/llvm-project/lld/COFF/
H A DChunks.h760 PseudoRelocTableChunk(std::vector<RuntimePseudoReloc> &relocs) in PseudoRelocTableChunk() argument
761 : relocs(std::move(relocs)) { in PseudoRelocTableChunk()
768 std::vector<RuntimePseudoReloc> relocs;
H A DChunks.cpp924 if (relocs.empty()) in getSize()
926 return 12 + 12 * relocs.size(); in getSize()
931 if (relocs.empty()) in writeTo()
942 for (const RuntimePseudoReloc &rpr : relocs) { in writeTo()
/freebsd/contrib/llvm-project/lld/MachO/Arch/
H A DARM64.cpp169 thunk->relocs.emplace_back(/*type=*/ARM64_RELOC_PAGEOFF12, in populateThunk()
173 thunk->relocs.emplace_back(/*type=*/ARM64_RELOC_PAGE21, in populateThunk()

123