Home
last modified time | relevance | path

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

123456

/src/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.SectionA in resolveRelocation()
183 uint64_t Result = RE.Sections.SectionA == static_cast<uint32_t>(-1) in resolveRelocation()
185 : Sections[RE.Sections.SectionA].getLoadAddress(); 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()
/src/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOReader.cpp64 std::vector<std::unique_ptr<Section>> Sections; in extractSections() local
77 Sections.push_back( in extractSections()
80 Section &S = *Sections.back(); in extractSections()
115 return std::move(Sections); in extractSections()
137 if (Expected<std::vector<std::unique_ptr<Section>>> Sections = in readLoadCommands() local
140 LC.Sections = std::move(*Sections); in readLoadCommands()
142 return Sections.takeError(); in readLoadCommands()
153 if (Expected<std::vector<std::unique_ptr<Section>>> Sections = in readLoadCommands() local
156 LC.Sections = std::move(*Sections); in readLoadCommands()
158 return Sections.takeError(); in readLoadCommands()
[all …]
H A DMachOObject.cpp109 std::begin(LC.Sections), std::end(LC.Sections), in removeSections()
111 for (auto I = LC.Sections.begin(), End = It; I != End; ++I) { in removeSections()
115 LC.Sections.erase(It, LC.Sections.end()); in removeSections()
129 for (const std::unique_ptr<Section> &Sec : LC.Sections) in removeSections()
H A DMachOObjcopy.cpp277 return LC.Sections.empty() && in processLoadCommands()
292 for (const std::unique_ptr<Section> &Sec : LC.Sections) { in dumpSectionToFile()
324 for (const std::unique_ptr<Section> &S : LC.Sections) in addSection()
326 LC.Sections.push_back(std::make_unique<Section>(Sec)); in addSection()
327 LC.Sections.back()->Addr = Addr; in addSection()
336 NewSegment.Sections.push_back(std::make_unique<Section>(Sec)); in addSection()
337 NewSegment.Sections.back()->Addr = *NewSegment.getSegmentVMAddr(); in addSection()
352 auto FoundSec = llvm::find_if(FoundSeg->Sections, in findSection()
356 if (FoundSec == FoundSeg->Sections.end()) in findSection()
425 for (std::unique_ptr<Section> &Sec : LC.Sections) in handleArgs()
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()
/src/contrib/llvm-project/llvm/lib/ObjCopy/COFF/
H A DCOFFObject.cpp56 for (const Section &Sec : Sections) { in markSymbols()
71 Sections.emplace_back(S); in addSections()
77 SectionMap = DenseMap<ssize_t, Section *>(Sections.size()); in updateSections()
79 for (Section &S : Sections) { in updateSections()
96 llvm::erase_if(Sections, [ToRemove, &RemovedSections](const Section &Sec) { in removeSections()
121 for (Section &Sec : Sections) { in truncateSections()
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()
80 Obj.addSections(Sections); in readSections()
87 ArrayRef<Section> Sections = Obj.getSections(); in readSymbols() local
130 Sections.size()) in readSymbols()
131 Sym.TargetSectionId = Sections[SymRef.getSectionNumber() - 1].UniqueId; in readSymbols()
141 if (Index <= 0 || static_cast<uint32_t>(Index - 1) >= Sections.size()) in readSymbols()
144 Sym.AssociativeComdatTargetSectionId = Sections[Index - 1].UniqueId; in readSymbols()
/src/contrib/llvm-project/llvm/lib/ObjCopy/wasm/
H A DWasmReader.cpp21 std::vector<Section> Sections; in create() local
22 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()
H A DWasmWriter.cpp50 SectionHeaders.reserve(Obj.Sections.size()); in finalize()
52 for (const Section &S : Obj.Sections) { in finalize()
73 Out.write(reinterpret_cast<const char *>(Obj.Sections[I].Contents.data()), in write()
74 Obj.Sections[I].Contents.size()); in write()
H A DWasmObject.cpp23 Sections.push_back(NewSection); in addSectionWithOwnedContents()
29 llvm::erase_if(Sections, ToRemove); in removeSections()
/src/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()
45 Obj.Sections.push_back(std::move(ReadSec)); in readSections()
87 Obj->Sections.reserve(XCOFFObj.getNumberOfSections()); in create()
/src/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldImpl.h141 SectionPair Sections; member
174 Sections.SectionA = SectionA; in RelocationEntry()
175 Sections.SectionB = SectionB; in RelocationEntry()
185 Sections.SectionA = SectionA; in RelocationEntry()
186 Sections.SectionB = SectionB; in RelocationEntry()
254 SectionList Sections; variable
478 return Sections[SectionID].getLoadAddress(); in getSectionLoadAddress()
485 return Sections[SectionID].getAddress(); in getSectionAddress()
493 reinterpret_cast<char *>(Sections[SectionID].getAddress()), in getSectionContent()
494 Sections[SectionID].getStubOffset() + getMaxStubSize()); in getSectionContent()
H A DRuntimeDyldMachO.cpp48 uint8_t *Src = Sections[RE.SectionID].getAddress() + RE.Offset; in memcpyAddend()
64 SectionEntry &Section = Sections[SectionID]; in processScatteredVANILLA()
150 const SectionEntry &Section = Sections[RE.SectionID]; in dumpRelocationToResolve()
199 << Sections[PTSectionID].getName() << ", Section ID " in populateIndirectSymbolPointersSection()
325 SectionEntry *Text = &Sections[SectionInfo.TextSID]; in registerEHFrames()
326 SectionEntry *EHFrame = &Sections[SectionInfo.EHFrameSID]; in registerEHFrames()
329 ExceptTab = &Sections[SectionInfo.ExceptTabSID]; in registerEHFrames()
H A DRuntimeDyldCOFF.cpp96 assert(SectionID < Sections.size() && "SectionID out of range"); in getDLLImportOffset()
97 auto &Sec = Sections[SectionID]; in getDLLImportOffset()
106 RE.Sections.SectionA = -1; in getDLLImportOffset()
/src/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DMachOBuilder.h270 std::vector<std::unique_ptr<Section>> Sections;
282 Sections.push_back(std::make_unique<Section>(Builder, SecName, SegName));
283 return *Sections.back();
290 for (auto &Sec : Sections)
352 Seg.Sections.size() * sizeof(typename MachOTraits::Section);
353 Seg.nsects = Seg.Sections.size();
366 for (auto &Sec : Seg.Sections) {
391 for (auto &Sec : Seg.Sections) {
407 for (auto &Sec : Seg.Sections) {
491 for (auto &Sec : Seg.Sections) {
[all …]
/src/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DObjDumper.cpp105 ArrayRef<std::string> Sections) { in getSectionRefsByNameOrIndex() argument
110 for (StringRef Section : Sections) { in getSectionRefsByNameOrIndex()
160 ArrayRef<std::string> Sections, in printSectionsAsString() argument
164 getSectionRefsByNameOrIndex(Obj, Sections)) { in printSectionsAsString()
177 ArrayRef<std::string> Sections, in printSectionsAsHex() argument
181 getSectionRefsByNameOrIndex(Obj, Sections)) { in printSectionsAsHex()
/src/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DDebugObjectManagerPlugin.cpp223 StringMap<std::unique_ptr<DebugObjectSection>> Sections; member in llvm::orc::ELFDebugObject
268 Expected<ArrayRef<SectionHeader>> Sections = ObjRef->sections(); in CreateArchType() local
269 if (!Sections) in CreateArchType()
270 return Sections.takeError(); in CreateArchType()
272 for (const SectionHeader &Header : *Sections) { in CreateArchType()
327 for (const auto &KV : Sections) in finalizeWorkingMemory()
360 bool Inserted = Sections.try_emplace(Name, std::move(Section)).second; in recordSection()
369 auto It = Sections.find(Name); in getSection()
370 return It == Sections.end() ? nullptr : It->second.get(); in getSection()
/src/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
585 std::set<const SectionBase *, SectionCompare> Sections; variable
591 if (!Sections.empty()) in firstSection()
592 return *Sections.begin(); in firstSection()
596 void removeSection(const SectionBase *Sec) { Sections.erase(Sec); } in removeSection()
[all …]

123456