Home
last modified time | relevance | path

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

12

/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.h95 virtual void sortRelocs(std::vector<ELFRelocationEntry> &Relocs);
/freebsd/contrib/llvm-project/lld/ELF/
H A DRelocations.h320 template <class RelTy> struct Relocs : ArrayRef<RelTy> { struct
321 Relocs() = default;
322 Relocs(ArrayRef<RelTy> a) : ArrayRef<RelTy>(a) {} in Relocs() function
326 struct Relocs<llvm::object::Elf_Crel_Impl<is64>> : RelocsCrel<is64> {
346 inline Relocs<RelTy> sortRels(Relocs<RelTy> rels,
354 rels = Relocs<RelTy>(storage);
360 inline Relocs<llvm::object::Elf_Crel_Impl<is64>>
361 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);
239 bool ICF<ELFT>::constantEq(const InputSection *secA, Relocs<RelTy> ra, in constantEq()
240 const InputSection *secB, Relocs<RelTy> rb) { in constantEq()
339 bool ICF<ELFT>::variableEq(const InputSection *secA, Relocs<RelTy> ra, in variableEq()
340 const InputSection *secB, Relocs<RelTy> rb) { in variableEq()
451 Relocs<RelTy> rels) { in combineRelocHashes()
H A DInputSection.h38 Relocs<typename ELFT::Rel> rels;
39 Relocs<typename ELFT::Rela> relas;
40 Relocs<typename ELFT::Crel> crels;
447 void relocateNonAlloc(Ctx &, uint8_t *buf, Relocs<RelTy> rels);
/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.cpp31 for (Relocation &R : Sec.Relocs) { in finalizeRelocTargets()
176 if (S.Relocs.size() >= 0xffff) { in layoutSections()
182 S.Header.NumberOfRelocations = S.Relocs.size(); in layoutSections()
183 S.Header.PointerToRelocations = S.Relocs.size() ? FileSize : 0; in layoutSections()
186 FileSize += S.Relocs.size() * sizeof(coff_relocation); in layoutSections()
409 if (S.Relocs.size() >= 0xffff) { in writeSections()
411 R.VirtualAddress = S.Relocs.size() + 1; in writeSections()
417 for (const auto &R : S.Relocs) { in writeSections()
H A DCOFFReader.cpp72 ArrayRef<coff_relocation> Relocs = COFFObj.getRelocations(Sec); in readSections() local
73 llvm::append_range(S.Relocs, Relocs); in readSections()
178 for (Relocation &R : Sec.Relocs) { in setSymbolTargets()
H A DCOFFObject.cpp58 for (const Relocation &R : Sec.Relocs) { in markSymbols()
125 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.h229 std::vector<Reloc> Relocs;
255 Relocs.push_back({Offset, Target, PCRel, Length, Type});
403 if (!Sec->Relocs.empty()) {
409 Sec->nreloc = Sec->Relocs.size();
410 Offset += Sec->Relocs.size() * sizeof(MachO::relocation_info);
411 for (auto &R : Sec->Relocs)
488 assert(Sec->Relocs.empty() &&
506 if (!Sec->Relocs.empty()) {
510 for (auto &R : Sec->Relocs) {
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsELFObjectWriter.cpp55 void sortRelocs(std::vector<ELFRelocationEntry> &Relocs) override;
381 void MipsELFObjectWriter::sortRelocs(std::vector<ELFRelocationEntry> &Relocs) { in sortRelocs() argument
389 llvm::sort(Relocs, in sortRelocs()
398 for (auto &R : Relocs) { in sortRelocs()
435 assert(Relocs.size() == Sorted.size() && "Some relocs were not consumed"); in sortRelocs()
440 Relocs[CopyTo++] = R.R; in sortRelocs()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DELF.cpp370 std::vector<Elf_Rel> Relocs; in decode_relrs() local
381 Relocs.push_back(Rel); in decode_relrs()
389 Relocs.push_back(Rel); in decode_relrs()
395 return Relocs; in decode_relrs()
472 std::vector<Elf_Rela> Relocs; in android_relas() local
473 Relocs.reserve(NumRelocs); in android_relas()
510 Relocs.push_back(R); in android_relas()
516 return Relocs; in android_relas()
H A DCOFFObjectFile.cpp2308 Relocs.reserve(OrigRelocs.size()); in load()
2310 Relocs.push_back(&R); in load()
2311 llvm::sort(Relocs, [](const coff_relocation *A, const coff_relocation *B) { in load()
2329 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.cpp21 std::vector<ELFRelocationEntry> &Relocs) {} in sortRelocs() argument
H A DELFObjectWriter.cpp802 static void encodeCrel(ArrayRef<ELFRelocationEntry> Relocs, raw_ostream &OS) { in encodeCrel() argument
804 ELF::encodeCrel<Is64>(OS, Relocs, [&](const ELFRelocationEntry &R) { in encodeCrel()
812 std::vector<ELFRelocationEntry> &Relocs = OWriter.Relocations[&Sec]; in writeRelocations() local
817 OWriter.TargetObjectWriter->sortRelocs(Relocs); in writeRelocations()
820 for (const ELFRelocationEntry &Entry : Relocs) { in writeRelocations()
856 encodeCrel<true>(Relocs, W.OS); in writeRelocations()
858 encodeCrel<false>(Relocs, W.OS); in writeRelocations()
860 for (const ELFRelocationEntry &Entry : Relocs) { in writeRelocations()
H A DMachObjectWriter.cpp912 std::vector<RelAndSymbol> &Relocs = Relocations[&Sec]; in writeObject() local
913 unsigned NumRelocs = Relocs.size(); in writeObject()
1043 std::vector<RelAndSymbol> &Relocs = Relocations[&Sec]; in writeObject() local
1044 for (const RelAndSymbol &Rel : llvm::reverse(Relocs)) { in writeObject()
H A DWasmObjectWriter.cpp1085 std::vector<WasmRelocationEntry> &Relocs) { in writeRelocSection() argument
1089 if (Relocs.empty()) in writeRelocSection()
1098 Relocs, [](const WasmRelocationEntry &A, const WasmRelocationEntry &B) { in writeRelocSection()
1107 encodeULEB128(Relocs.size(), W->OS); in writeRelocSection()
1108 for (const WasmRelocationEntry &RelEntry : Relocs) { in writeRelocSection()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyld.cpp1113 void RuntimeDyldImpl::resolveRelocationList(const RelocationList &Relocs, in resolveRelocationList() argument
1115 for (const RelocationEntry &RE : Relocs) { in resolveRelocationList()
1128 RelocationList &Relocs = RelocKV.second; in applyExternalSymbolRelocations() local
1133 resolveRelocationList(Relocs, 0); in applyExternalSymbolRelocations()
1168 resolveRelocationList(Relocs, Addr); in applyExternalSymbolRelocations()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/
H A Dppc64.h91 SmallVector<PLTCallStubReloc, 2> Relocs; member
153 for (auto const &Reloc : StubInfo.Relocs) in createAnonymousPointerJumpStub()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DProgram.h179 llvm::DenseMap<const FunctionDecl *, std::vector<unsigned>> Relocs; variable
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonMCCodeEmitter.cpp513 static const std::map<unsigned, unsigned> Relocs = { in getFixupNoBits() local
527 auto F = Relocs.find(VarKind); in getFixupNoBits()
528 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()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObject.cpp1655 static Error initRelocations(RelocationSection *Relocs, T RelRange) { in initRelocations() argument
1660 ToAdd.Type = Rel.getType(Relocs->getObject().IsMips64EL); in initRelocations()
1662 if (uint32_t Sym = Rel.getSymbol(Relocs->getObject().IsMips64EL)) { in initRelocations()
1663 if (!Relocs->getObject().SymbolTable) in initRelocations()
1666 "'" + Relocs->Name + "': relocation references symbol with index " + in initRelocations()
1669 Relocs->getObject().SymbolTable->getSymbolByIndex(Sym); in initRelocations()
1676 Relocs->addRelocation(ToAdd); in initRelocations()

12