Home
last modified time | relevance | path

Searched refs:Relocations (Results 1 – 25 of 44) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/XCOFF/
H A DXCOFFReader.cpp37 auto Relocations = in readSections() local
39 if (!Relocations) in readSections()
40 return Relocations.takeError(); in readSections()
41 for (const XCOFFRelocation32 &Rel : Relocations.get()) in readSections()
42 ReadSec.Relocations.push_back(Rel); in readSections()
H A DXCOFFObject.h26 std::vector<XCOFFRelocation32> Relocations; member
H A DXCOFFWriter.cpp85 for (const XCOFFRelocation32 &Rel : Sec.Relocations) { in writeSections()
/freebsd-14.2/contrib/llvm-project/llvm/lib/MC/
H A DWinCOFFObjectWriter.cpp82 int Relocations = 0; member in __anon1ceee7e50111::COFFSymbol
117 relocations Relocations; member in __anon1ceee7e50111::COFFSection
581 if (Section->Relocations.size() >= 0xffff) in writeSectionHeaders()
644 if (Sec.Relocations.empty()) { in writeSection()
653 if (Sec.Relocations.size() >= 0xffff) { in writeSection()
657 R.VirtualAddress = Sec.Relocations.size() + 1; in writeSection()
663 for (const auto &Relocation : Sec.Relocations) in writeSection()
786 if (!Sec->Relocations.empty()) { in assignFileOffsets()
805 for (auto &Relocation : Sec->Relocations) { in assignFileOffsets()
943 ++Reloc.Symb->Relocations; in recordRelocation()
[all …]
H A DELFObjectWriter.cpp223 DenseMap<const MCSectionELF *, std::vector<ELFRelocationEntry>> Relocations; member in __anoneac145b00111::ELFObjectWriter
244 Relocations.clear(); in reset()
637 OWriter.Relocations[MemtagRelocs].push_back(Rec); in createMemtagRelocs()
825 if (OWriter.Relocations[&Sec].empty()) in createRelocationSection()
941 std::vector<ELFRelocationEntry> &Relocs = OWriter.Relocations[&Sec]; in writeRelocations()
1113 std::vector<MCSectionELF *> Relocations; in writeObject() local
1151 Relocations.push_back(RelSection); in writeObject()
1189 for (MCSectionELF *RelSection : Relocations) { in writeObject()
1515 Relocations[&FixupSection].push_back(Rec); in recordRelocation()
1530 Relocations[&FixupSection].push_back(Rec); in recordRelocation()
H A DXCOFFObjectWriter.cpp90 SmallVector<XCOFFRelocation, 1> Relocations; member
754 SectionMap[RelocationSec]->Relocations.push_back(Reloc); in recordRelocation()
778 SectionMap[RelocationSec]->Relocations.push_back(RelocB); in recordRelocation()
1095 for (const auto Reloc : Csect.Relocations) in writeRelocations()
1102 for (const auto &Reloc : DwarfSection.DwarfSect->Relocations) in writeRelocations()
1249 RelCount += Csect.Relocations.size(); in finalizeSectionInfo()
1256 DwarfSection.DwarfSect->Relocations.size()); in finalizeSectionInfo()
H A DWasmObjectWriter.cpp345 std::vector<WasmRelocationEntry> &Relocations);
356 void applyRelocations(ArrayRef<WasmRelocationEntry> Relocations,
769 ArrayRef<WasmRelocationEntry> Relocations, uint64_t ContentsOffset, in applyRelocations() argument
772 for (const WasmRelocationEntry &RelEntry : Relocations) { in applyRelocations()
1151 auto &Relocations = CustomSectionsRelocations[Sec.Section]; in writeCustomRelocSections() local
1152 writeRelocSection(Sec.OutputIndex, Sec.Name, Relocations); in writeCustomRelocSections()
1257 auto &Relocations = CustomSectionsRelocations[CustomSection.Section]; in writeCustomSection() local
1258 applyRelocations(Relocations, CustomSection.OutputContentsOffset, Layout); in writeCustomSection()
H A DMachObjectWriter.cpp48 Relocations.clear(); in reset()
626 for (RelAndSymbol &Rel : Relocations[&Section]) { in computeSymbolTable()
886 std::vector<RelAndSymbol> &Relocs = Relocations[&Sec]; in writeObject()
1005 std::vector<RelAndSymbol> &Relocs = Relocations[&Sec]; in writeObject()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOReader.cpp96 S.Relocations.reserve(S.NReloc); in extractSections()
109 S.Relocations.push_back(R); in extractSections()
112 assert(S.NReloc == S.Relocations.size() && in extractSections()
256 for (auto &Reloc : Sec->Relocations) in setSymbolInRelocationInfo()
H A DMachOLayoutBuilder.cpp218 Sec->RelOff = Sec->Relocations.empty() ? 0 : Offset; in layoutRelocations()
219 Sec->NReloc = Sec->Relocations.size(); in layoutRelocations()
H A DMachOObject.h57 std::vector<RelocationInfo> Relocations; member
H A DMachOObject.cpp130 for (const RelocationInfo &R : Sec->Relocations) in removeSections()
H A DMachOWriter.cpp253 for (size_t Index = 0; Index < Sec->Relocations.size(); ++Index) { in writeSections()
254 RelocationInfo RelocInfo = Sec->Relocations[Index]; in writeSections()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCMachObjectWriter.h108 DenseMap<const MCSection *, std::vector<RelAndSymbol>> Relocations; variable
236 Relocations[Sec].push_back(P); in addRelocation()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DCOFFEmitter.cpp253 if (!S.Relocations.empty()) { in layoutCOFF()
259 S.Header.NumberOfRelocations = S.Relocations.size(); in layoutCOFF()
260 CurrentSectionDataOffset += S.Relocations.size() * COFF::RelocationSize; in layoutCOFF()
505 OS << binary_le<uint32_t>(/*VirtualAddress=*/ S.Relocations.size() + 1) in writeCOFF()
508 for (const COFFYAML::Relocation &R : S.Relocations) { in writeCOFF()
H A DXCOFFEmitter.cpp100 if (!InitSection.Relocations.empty()) { in initRelocations()
101 InitSection.NumberOfRelocations = InitSection.Relocations.size(); in initRelocations()
505 if (!YamlSec.Relocations.empty()) { in writeRelocations()
513 for (const XCOFFYAML::Relocation &YamlRel : YamlSec.Relocations) { in writeRelocations()
H A DWasmEmitter.cpp584 encodeULEB128(Sec.Relocations.size(), OS); in writeRelocSection()
586 for (auto Reloc : Sec.Relocations) { in writeRelocSection()
667 if (Sec->Relocations.empty()) { in writeWasm()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-readobj/
H A Dllvm-readobj.cpp112 static bool Relocations; variable
226 opts::Relocations = Args.hasArg(OPT_relocs); in parseOptions()
434 if (opts::Relocations) in dumpObject()
675 opts::Relocations = true; in llvm_readobj_main()
H A DXCOFFDumper.cpp497 const ArrayRef<RelTy> Relocations = *ErrOrRelocations; in printRelocations() local
498 if (Relocations.empty()) in printRelocations()
505 for (const RelTy Reloc : Relocations) in printRelocations()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-objdump/
H A Dllvm-objdump.h64 extern bool Relocations;
/freebsd-14.2/usr.bin/clang/lld/
H A DMakefile69 SRCS+= ELF/Relocations.cpp
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyld.cpp147 for (const auto &Rel : Relocations) { in resolveLocalRelocations()
157 Relocations.clear(); in resolveLocalRelocations()
948 Relocations[SectionID].push_back(RE); in addRelocationForSection()
966 Relocations[SymInfo.getSectionID()].push_back(RECopy); in addRelocationForSymbol()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObject.cpp112 Sec.Size = Sec.Relocations.size() * Sec.EntrySize; in visit()
892 for (const Relocation &R : Relocations) { in removeSectionReferences()
954 static void writeRel(const RelRange &Relocations, T *Buf, bool IsMips64EL) { in writeRel() argument
955 for (const auto &Reloc : Relocations) { in writeRel()
968 writeRel(Sec.Relocations, reinterpret_cast<Elf_Rel *>(Buf), in visit()
971 writeRel(Sec.Relocations, reinterpret_cast<Elf_Rela *>(Buf), in visit()
986 for (const Relocation &Reloc : Relocations) in removeSymbols()
996 for (const Relocation &Reloc : Relocations) in markSymbols()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DCOFFYAML.h89 std::vector<Relocation> Relocations; member
H A DXCOFFYAML.h83 std::vector<Relocation> Relocations; member

12