Home
last modified time | relevance | path

Searched refs:Relocs (Results 1 – 25 of 33) sorted by relevance

12

/freebsd/contrib/llvm-project/lld/ELF/
H A DRelocations.h284 template <class RelTy> struct Relocs : ArrayRef<RelTy> { struct
285 Relocs() = default;
286 Relocs(ArrayRef<RelTy> a) : ArrayRef<RelTy>(a) {} in Relocs() function
290 struct Relocs<llvm::object::Elf_Crel_Impl<is64>> : RelocsCrel<is64> {
310 inline Relocs<RelTy> sortRels(Relocs<RelTy> rels,
318 rels = Relocs<RelTy>(storage);
324 inline Relocs<llvm::object::Elf_Crel_Impl<is64>>
325 sortRels(Relocs<llvm::object::Elf_Crel_Impl<is64>> rels,
H A DICF.cpp106 bool constantEq(const InputSection *a, Relocs<RelTy> relsA,
107 const InputSection *b, Relocs<RelTy> relsB);
110 bool variableEq(const InputSection *a, Relocs<RelTy> relsA,
111 const InputSection *b, Relocs<RelTy> relsB);
238 bool ICF<ELFT>::constantEq(const InputSection *secA, Relocs<RelTy> ra, in constantEq()
239 const InputSection *secB, Relocs<RelTy> rb) { in constantEq()
338 bool ICF<ELFT>::variableEq(const InputSection *secA, Relocs<RelTy> ra, in variableEq()
339 const InputSection *secB, Relocs<RelTy> rb) { in variableEq()
448 Relocs<RelTy> rels) { in combineRelocHashes()
H A DInputSection.h40 Relocs<typename ELFT::Rel> rels;
41 Relocs<typename ELFT::Rela> relas;
42 Relocs<typename ELFT::Crel> crels;
428 void relocateNonAlloc(uint8_t *buf, Relocs<RelTy> rels);
H A DRelocations.cpp480 void scanOne(typename Relocs<RelTy>::const_iterator &i);
481 template <class ELFT, class RelTy> void scan(Relocs<RelTy> rels);
1440 void RelocationScanner::scanOne(typename Relocs<RelTy>::const_iterator &i) { in scanOne()
1553 static void checkPPC64TLSRelax(InputSectionBase &sec, Relocs<RelTy> rels) { in checkPPC64TLSRelax()
1585 void RelocationScanner::scan(Relocs<RelTy> rels) { in scan()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCELFExtras.h25 void encodeCrel(raw_ostream &OS, RelocsTy Relocs, F ToCrel) { in encodeCrel() argument
29 for (const auto &R : Relocs) in encodeCrel()
32 encodeULEB128(Relocs.size() * 8 + ELF::CREL_HDR_ADDEND + Shift, OS); in encodeCrel()
33 for (const auto &R : Relocs) { in encodeCrel()
H A DMCELFObjectWriter.h100 std::vector<ELFRelocationEntry> &Relocs);
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsELFObjectWriter.cpp68 std::vector<ELFRelocationEntry> &Relocs) override;
207 static void dumpRelocs(const char *Prefix, const Container &Relocs) { in dumpRelocs() argument
208 for (const auto &R : Relocs) in dumpRelocs()
432 std::vector<ELFRelocationEntry> &Relocs) { in sortRelocs() argument
439 if (Relocs.size() < 2) in sortRelocs()
443 llvm::sort(Relocs, in sortRelocs()
451 LLVM_DEBUG(dumpRelocs("R: ", Relocs)); in sortRelocs()
456 copy_if_else(Relocs.begin(), Relocs.end(), std::back_inserter(Remainder), in sortRelocs()
499 assert(Relocs.size() == Sorted.size() && "Some relocs were not consumed"); in sortRelocs()
504 Relocs[CopyTo++] = R.R; in sortRelocs()
/freebsd/contrib/llvm-project/llvm/lib/XRay/
H A DInstrumentationMap.cpp93 RelocMap Relocs; in loadObj() local
123 Relocs.insert( in loadObj()
134 Relocs.insert( in loadObj()
139 Relocs.insert({Reloc.getOffset(), *AddendOrErr}); in loadObj()
159 RelocMap::const_iterator R = Relocs.find(A); in loadObj()
160 if (R != Relocs.end()) in loadObj()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFWriter.cpp29 for (Relocation &R : Sec.Relocs) { in finalizeRelocTargets()
103 if (S.Relocs.size() >= 0xffff) { in layoutSections()
109 S.Header.NumberOfRelocations = S.Relocs.size(); in layoutSections()
110 S.Header.PointerToRelocations = S.Relocs.size() ? FileSize : 0; in layoutSections()
113 FileSize += S.Relocs.size() * sizeof(coff_relocation); in layoutSections()
331 if (S.Relocs.size() >= 0xffff) { in writeSections()
333 R.VirtualAddress = S.Relocs.size() + 1; in writeSections()
339 for (const auto &R : S.Relocs) { in writeSections()
H A DCOFFReader.cpp72 ArrayRef<coff_relocation> Relocs = COFFObj.getRelocations(Sec); in readSections() local
73 for (const coff_relocation &R : Relocs) in readSections()
74 S.Relocs.push_back(R); in readSections()
179 for (Relocation &R : Sec.Relocs) { in setSymbolTargets()
H A DCOFFObject.cpp57 for (const Relocation &R : Sec.Relocs) { in markSymbols()
124 Sec.Relocs.clear(); in truncateSections()
H A DCOFFObject.h37 std::vector<Relocation> Relocs; member
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DMachOBuilder.h234 std::vector<Reloc> Relocs;
260 Relocs.push_back({Offset, Target, PCRel, Length, Type});
408 if (!Sec->Relocs.empty()) {
414 Sec->nreloc = Sec->Relocs.size();
415 Offset += Sec->Relocs.size() * sizeof(MachO::relocation_info);
416 for (auto &R : Sec->Relocs)
493 assert(Sec->Relocs.empty() &&
511 if (!Sec->Relocs.empty()) {
515 for (auto &R : Sec->Relocs) {
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DELF.cpp368 std::vector<Elf_Rel> Relocs; in decode_relrs() local
379 Relocs.push_back(Rel); in decode_relrs()
387 Relocs.push_back(Rel); in decode_relrs()
393 return Relocs; in decode_relrs()
470 std::vector<Elf_Rela> Relocs; in android_relas() local
471 Relocs.reserve(NumRelocs); in android_relas()
508 Relocs.push_back(R); in android_relas()
514 return Relocs; in android_relas()
H A DCOFFObjectFile.cpp1897 Relocs.reserve(OrigRelocs.size()); in load()
1899 Relocs.push_back(&R); in load()
1900 llvm::sort(Relocs, [](const coff_relocation *A, const coff_relocation *B) { in load()
1918 std::equal_range(Relocs.begin(), Relocs.end(), &RelocTarget, in getContents()
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ELFRelocs/
H A DLoongArch.def64 // Relocs whose processing do not require a stack machine.
107 // Relocs added in ELF for the LoongArch™ Architecture v20230519, part of the
124 // Relocs added in ELF for the LoongArch™ Architecture v20231102, part of the
130 // Relocs added in ELF for the LoongArch™ Architecture v20231219, part of the
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCELFObjectTargetWriter.cpp28 std::vector<ELFRelocationEntry> &Relocs) { in sortRelocs()
27 sortRelocs(const MCAssembler & Asm,std::vector<ELFRelocationEntry> & Relocs) sortRelocs() argument
H A DELFObjectWriter.cpp797 static void encodeCrel(ArrayRef<ELFRelocationEntry> Relocs, raw_ostream &OS) { in encodeCrel() argument
799 ELF::encodeCrel<Is64>(OS, Relocs, [&](const ELFRelocationEntry &R) { in encodeCrel()
808 std::vector<ELFRelocationEntry> &Relocs = OWriter.Relocations[&Sec]; in writeRelocations() local
813 OWriter.TargetObjectWriter->sortRelocs(Asm, Relocs); in writeRelocations()
816 for (const ELFRelocationEntry &Entry : Relocs) { in writeRelocations()
852 encodeCrel<true>(Relocs, W.OS); in writeRelocations()
854 encodeCrel<false>(Relocs, W.OS); in writeRelocations()
856 for (const ELFRelocationEntry &Entry : Relocs) { in writeRelocations()
H A DMachObjectWriter.cpp907 std::vector<RelAndSymbol> &Relocs = Relocations[&Sec]; in writeObject() local
908 unsigned NumRelocs = Relocs.size(); in writeObject()
1038 std::vector<RelAndSymbol> &Relocs = Relocations[&Sec]; in writeObject() local
1039 for (const RelAndSymbol &Rel : llvm::reverse(Relocs)) { in writeObject()
H A DWasmObjectWriter.cpp1108 std::vector<WasmRelocationEntry> &Relocs) { in writeRelocSection() argument
1112 if (Relocs.empty()) in writeRelocSection()
1121 Relocs, [](const WasmRelocationEntry &A, const WasmRelocationEntry &B) { in writeRelocSection()
1130 encodeULEB128(Relocs.size(), W->OS); in writeRelocSection()
1131 for (const WasmRelocationEntry &RelEntry : Relocs) { in writeRelocSection()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
H A Dppc64.h90 SmallVector<PLTCallStubReloc, 2> Relocs; in pickStub()
152 for (auto const &Reloc : StubInfo.Relocs) in visitEdge()
67 SmallVector<PLTCallStubReloc, 2> Relocs; global() member
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyld.cpp1098 void RuntimeDyldImpl::resolveRelocationList(const RelocationList &Relocs, in resolveRelocationList() argument
1100 for (const RelocationEntry &RE : Relocs) { in resolveRelocationList()
1113 RelocationList &Relocs = RelocKV.second; in applyExternalSymbolRelocations() local
1118 resolveRelocationList(Relocs, 0); in applyExternalSymbolRelocations()
1153 resolveRelocationList(Relocs, Addr); in applyExternalSymbolRelocations()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.h166 llvm::DenseMap<const FunctionDecl *, std::vector<unsigned>> Relocs; variable
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonMCCodeEmitter.cpp483 static const std::map<unsigned,unsigned> Relocs = { in getFixupNoBits() local
497 auto F = Relocs.find(VarKind); in getFixupNoBits()
498 if (F != Relocs.end()) in getFixupNoBits()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFContext.cpp1979 RelocAddrMap Relocs; member
2248 RelocAddrMap *Map = Sec ? &Sec->Relocs : nullptr; in DWARFObjInMemory()
2254 .Relocs; in DWARFObjInMemory()
2258 .Relocs; in DWARFObjInMemory()
2325 RelocAddrMap::const_iterator AI = Sec.Relocs.find(Pos); in find()
2326 if (AI == Sec.Relocs.end()) in find()

12