Home
last modified time | relevance | path

Searched refs:Sections (Results 1 – 25 of 137) sorted by relevance

123456

/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldCOFFI386.h80 SectionEntry &AddendSection = Sections[SectionID]; in processRelocationRef()
143 const auto Section = Sections[RE.SectionID]; in resolveRelocation()
153 RE.Sections.SectionA == static_cast<uint32_t>(-1) in resolveRelocation()
155 : Sections[RE.Sections.SectionA].getLoadAddressWithOffset( in resolveRelocation()
160 << " TargetSection: " << RE.Sections.SectionA in resolveRelocation()
170 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend) - in resolveRelocation()
171 Sections[0].getLoadAddress(); in resolveRelocation()
175 << " TargetSection: " << RE.Sections in resolveRelocation()
[all...]
H A DRuntimeDyldCOFFThumb.h106 SectionEntry &AddendSection = Sections[SectionID]; in processRelocationRef()
209 const auto Section = Sections[RE.SectionID]; in resolveRelocation()
221 RE.Sections.SectionA == static_cast<uint32_t>(-1) in resolveRelocation()
223 : Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend); in resolveRelocation()
228 << " TargetSection: " << RE.Sections.SectionA in resolveRelocation()
237 uint64_t Result = Sections[RE.Sections.SectionA].getLoadAddress() - in resolveRelocation()
238 Sections[0].getLoadAddress() + RE.Addend; in resolveRelocation()
242 << " TargetSection: " << RE.Sections.SectionA in resolveRelocation()
270 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend); in resolveRelocation()
274 << " TargetSection: " << RE.Sections.SectionA in resolveRelocation()
[all …]
H A DRuntimeDyldMachOARM.h51 auto TargetObjAddr = Sections[SectionID].getObjAddress() + Offset; in isAddrTargetThumb()
55 Sections[Entry.getSectionID()].getObjAddress() + Entry.getOffset(); in isAddrTargetThumb()
63 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend()
204 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
259 uint64_t SectionABase = Sections[RE.Sections.SectionA].getLoadAddress(); in resolveRelocation()
260 uint64_t SectionBBase = Sections[RE.Sections.SectionB].getLoadAddress(); in resolveRelocation()
309 SectionEntry &Section = Sections[RE.SectionID]; in processBranchRelocation()
359 SectionEntry &Section = Sections[SectionID]; in processHALFSECTDIFFRelocation()
H A DRuntimeDyldMachOX86_64.h87 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
111 uint64_t SectionABase = Sections[RE.Sections.SectionA].getLoadAddress(); in resolveRelocation()
112 uint64_t SectionBBase = Sections[RE.Sections.SectionB].getLoadAddress(); in resolveRelocation()
130 SectionEntry &Section = Sections[RE.SectionID]; in processGOTRelocation()
167 uint8_t *LocalAddress = Sections[SectionID].getAddressWithOffset(Offset); in processSubtractRelocation()
H A DRuntimeDyldCOFFX86_64.h38 for (const SectionEntry &Section : Sections) in getImageBase()
88 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
155 SectionEntry &Section = Sections[SectionID]; in generateRelocationStub()
218 SectionEntry &Section = Sections[SectionID]; in processRelocationRef()
290 uint8_t *EHFrameAddr = Sections[EHFrameSID].getAddress(); in registerEHFrames()
291 uint64_t EHFrameLoadAddr = Sections[EHFrameSID].getLoadAddress(); in registerEHFrames()
292 size_t EHFrameSize = Sections[EHFrameSID].getSize(); in registerEHFrames()
H A DRuntimeDyldMachOI386.h100 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
114 uint64_t SectionABase = Sections[RE.Sections.SectionA].getLoadAddress(); in resolveRelocation()
115 uint64_t SectionBBase = Sections[RE.Sections.SectionB].getLoadAddress(); in resolveRelocation()
153 SectionEntry &Section = Sections[SectionID]; in processSECTDIFFRelocation()
H A DRuntimeDyldMachOAArch64.h35 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend()
358 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
418 uint64_t SectionABase = Sections[RE.Sections.SectionA].getLoadAddress(); in resolveRelocation()
419 uint64_t SectionBBase = Sections[RE.Sections.SectionB].getLoadAddress(); in resolveRelocation()
447 SectionEntry &Section = Sections[RE.SectionID]; in processGOTRelocation()
490 uint8_t *LocalAddress = Sections[SectionID].getAddressWithOffset(Offset); in processSubtractRelocation()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOReader.cpp63 std::vector<std::unique_ptr<Section>> Sections; in extractSections() local
76 Sections.push_back( in extractSections()
79 Section &S = *Sections.back(); in extractSections()
114 return std::move(Sections); in extractSections()
136 if (Expected<std::vector<std::unique_ptr<Section>>> Sections = in readLoadCommands() local
139 LC.Sections = std::move(*Sections); in readLoadCommands()
141 return Sections.takeError(); in readLoadCommands()
152 if (Expected<std::vector<std::unique_ptr<Section>>> Sections = in readLoadCommands() local
155 LC.Sections = std::move(*Sections); in readLoadCommands()
157 return Sections.takeError(); in readLoadCommands()
[all …]
H A DMachOObject.cpp122 std::begin(LC.Sections), std::end(LC.Sections), in removeSections()
124 for (auto I = LC.Sections.begin(), End = It; I != End; ++I) { in removeSections()
128 LC.Sections.erase(It, LC.Sections.end()); in removeSections()
142 for (const std::unique_ptr<Section> &Sec : LC.Sections) in removeSections()
H A DMachOObjcopy.cpp296 return LC.Sections.empty() && in processLoadCommands()
311 for (const std::unique_ptr<Section> &Sec : LC.Sections) { in dumpSectionToFile()
343 for (const std::unique_ptr<Section> &S : LC.Sections) in addSection()
345 LC.Sections.push_back(std::make_unique<Section>(Sec)); in addSection()
346 LC.Sections.back()->Addr = Addr; in addSection()
355 NewSegment.Sections.push_back(std::make_unique<Section>(Sec)); in addSection()
356 NewSegment.Sections.back()->Addr = *NewSegment.getSegmentVMAddr(); in addSection()
373 for (const auto& Sec : LC.Sections) in findSection()
389 auto FoundSec = llvm::find_if(FoundSeg->Sections, in findSection()
393 if (FoundSec == FoundSeg->Sections.end()) in findSection()
[all …]
H A DMachOLayoutBuilder.cpp34 sizeof(MachO::section) * LC.Sections.size(); in computeSizeOfCmds()
38 sizeof(MachO::section_64) * LC.Sections.size(); in computeSizeOfCmds()
145 assert(LC.Sections.empty() && "__LINKEDIT segment has sections"); in layoutSegments()
154 for (std::unique_ptr<Section> &Sec : LC.Sections) { in layoutSegments()
194 sizeof(MachO::section) * LC.Sections.size(); in layoutSegments()
195 MLC.segment_command_data.nsects = LC.Sections.size(); in layoutSegments()
203 sizeof(MachO::section_64) * LC.Sections.size(); in layoutSegments()
204 MLC.segment_command_64_data.nsects = LC.Sections.size(); in layoutSegments()
217 for (std::unique_ptr<Section> &Sec : LC.Sections) { in layoutRelocations()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFReader.cpp57 std::vector<Section> Sections; in readSections() local
64 Sections.push_back(Section()); in readSections()
65 Section &S = Sections.back(); in readSections()
79 Obj.addSections(Sections); in readSections()
86 ArrayRef<Section> Sections = Obj.getSections(); in readSymbols() local
129 Sections.size()) in readSymbols()
130 Sym.TargetSectionId = Sections[SymRef.getSectionNumber() - 1].UniqueId; in readSymbols()
140 if (Index <= 0 || static_cast<uint32_t>(Index - 1) >= Sections.size()) in readSymbols()
143 Sym.AssociativeComdatTargetSectionId = Sections[Index - 1].UniqueId; in readSymbols()
H A DCOFFObject.cpp57 for (const Section &Sec : Sections) { in markSymbols()
72 Sections.emplace_back(S); in addSections()
78 SectionMap = DenseMap<ssize_t, Section *>(Sections.size()); in updateSections()
80 for (Section &S : Sections) { in updateSections()
97 llvm::erase_if(Sections, [ToRemove, &RemovedSections](const Section &Sec) { in removeSections()
122 for (Section &Sec : Sections) { in truncateSections()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/XCOFF/
H A DXCOFFWriter.cpp24 FileSize += sizeof(XCOFFSectionHeader32) * Obj.Sections.size(); in finalizeHeaders()
28 for (const Section &Sec : Obj.Sections) { in finalizeSections()
67 for (const Section &Sec : Obj.Sections) { in writeHeaders()
75 for (const Section &Sec : Obj.Sections) { in writeSections()
82 for (const Section &Sec : Obj.Sections) { in writeSections()
H A DXCOFFReader.cpp18 ArrayRef<XCOFFSectionHeader32> Sections = XCOFFObj.sections32(); in readSections() local
19 for (const XCOFFSectionHeader32 &Sec : Sections) { in readSections()
44 Obj.Sections.push_back(std::move(ReadSec)); in readSections()
86 Obj->Sections.reserve(XCOFFObj.getNumberOfSections()); in create()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/wasm/
H A DWasmWriter.cpp48 SectionHeaders.reserve(Obj.Sections.size()); in finalize()
50 for (const Section &S : Obj.Sections) { in finalize()
71 Out.write(reinterpret_cast<const char *>(Obj.Sections[I].Contents.data()), in write()
72 Obj.Sections[I].Contents.size()); in write()
H A DWasmObject.cpp20 Sections.push_back(NewSection); in addSectionWithOwnedContents()
30 for (auto &Sec : Sections) { in removeSections()
39 llvm::erase_if(Sections, ToRemove); in removeSections()
H A DWasmReader.cpp22 Obj->Sections.reserve(WasmObj.getNumSections()); in create()
25 Obj->Sections.push_back({static_cast<uint8_t>(WS.Type), in create()
29 Section &ReaderSec = Obj->Sections.back(); in create()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldImpl.h142 SectionPair Sections; member
175 Sections.SectionA = SectionA; in RelocationEntry()
176 Sections.SectionB = SectionB; in RelocationEntry()
186 Sections.SectionA = SectionA; in RelocationEntry()
187 Sections.SectionB = SectionB; in RelocationEntry()
249 SectionList Sections; variable
483 return Sections[SectionID].getLoadAddress(); in getSectionLoadAddress()
490 return Sections[SectionID].getAddress(); in getSectionAddress()
498 reinterpret_cast<char *>(Sections[SectionID].getAddress()), in getSectionContent()
499 Sections[SectionID].getStubOffset() + getMaxStubSize()); in getSectionContent()
H A DRuntimeDyldMachO.cpp47 uint8_t *Src = Sections[RE.SectionID].getAddress() + RE.Offset; in memcpyAddend()
63 SectionEntry &Section = Sections[SectionID]; in processScatteredVANILLA()
149 const SectionEntry &Section = Sections[RE.SectionID]; in dumpRelocationToResolve()
198 << Sections[PTSectionID].getName() << ", Section ID " in populateIndirectSymbolPointersSection()
324 SectionEntry *Text = &Sections[SectionInfo.TextSID]; in registerEHFrames()
325 SectionEntry *EHFrame = &Sections[SectionInfo.EHFrameSID]; in registerEHFrames()
328 ExceptTab = &Sections[SectionInfo.ExceptTabSID]; in registerEHFrames()
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DMachOBuilder.h265 std::vector<std::unique_ptr<Section>> Sections;
277 Sections.push_back(std::make_unique<Section>(Builder, SecName, SegName));
278 return *Sections.back();
285 for (auto &Sec : Sections)
347 Seg.Sections.size() * sizeof(typename MachOTraits::Section);
348 Seg.nsects = Seg.Sections.size();
361 for (auto &Sec : Seg.Sections) {
386 for (auto &Sec : Seg.Sections) {
402 for (auto &Sec : Seg.Sections) {
486 for (auto &Sec : Seg.Sections) {
[all …]
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DObjDumper.cpp107 ArrayRef<std::string> Sections) { in getSectionRefsByNameOrIndex() argument
112 for (StringRef Section : Sections) { in getSectionRefsByNameOrIndex()
162 ArrayRef<std::string> Sections, in printSectionsAsString() argument
166 getSectionRefsByNameOrIndex(Obj, Sections)) { in printSectionsAsString()
180 ArrayRef<std::string> Sections, in printSectionsAsHex() argument
184 getSectionRefsByNameOrIndex(Obj, Sections)) { in printSectionsAsHex()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DDebugObjectManagerPlugin.cpp221 StringMap<std::unique_ptr<DebugObjectSection>> Sections; member in llvm::orc::ELFDebugObject
266 Expected<ArrayRef<SectionHeader>> Sections = ObjRef->sections(); in CreateArchType() local
267 if (!Sections) in CreateArchType()
268 return Sections.takeError(); in CreateArchType()
270 for (const SectionHeader &Header : *Sections) { in CreateArchType()
325 for (const auto &KV : Sections) in finalizeWorkingMemory()
359 bool Inserted = Sections.try_emplace(Name, std::move(Section)).second; in recordSection()
368 auto It = Sections.find(Name); in getSection()
369 return It == Sections.end() ? nullptr : It->second.get(); in getSection()
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/ELF/
H A DELFObject.h51 ArrayRef<std::unique_ptr<SectionBase>> Sections; variable
57 : Sections(Secs) {} in SectionTableRef()
60 iterator begin() const { return iterator(Sections.data()); } in begin()
61 iterator end() const { return iterator(Sections.data() + Sections.size()); } in end()
62 size_t size() const { return Sections.size(); } in size()
387 std::vector<const SectionBase *> Sections; variable
586 std::set<const SectionBase *, SectionCompare> Sections; variable
592 if (!Sections.empty()) in firstSection()
593 return *Sections.begin(); in firstSection()
597 void removeSection(const SectionBase *Sec) { Sections.erase(Sec); } in removeSection()
[all …]
H A DELFObject.cpp1684 if (Index == SHN_UNDEF || Index > Sections.size()) in getSection()
1686 return Sections[Index - 1].get(); in getSection()
1786 Expected<typename ELFFile<ELFT>::Elf_Shdr_Range> Sections = in readSectionHeaders() local
1788 if (!Sections) in readSectionHeaders()
1789 return Sections.takeError(); in readSectionHeaders()
1791 for (const typename ELFFile<ELFT>::Elf_Shdr &Shdr : *Sections) { in readSectionHeaders()
1879 Expected<typename ELFFile<ELFT>::Elf_Shdr_Range> Sections = in readSections() local
1881 if (!Sections) in readSections()
1882 return Sections.takeError(); in readSections()
1885 Sections->begin() + RelSec->Index; in readSections()
[all …]

123456