Home
last modified time | relevance | path

Searched refs:SectionID (Results 1 – 25 of 41) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp670 Rel.SectionID = 0; in findPPC64TOCSection()
686 Rel.SectionID = *SectionIDOrErr; in findPPC64TOCSection()
1434 SectionID == Reloc.SectionID) { in processRelocationRef()
1571 if (Value.SectionID == SectionID){ in processRelocationRef()
1583 (AbiVariant == 2 && Value.SectionID == SectionID)) { in processRelocationRef()
1588 if (IsExtern || (AbiVariant == 2 && Value.SectionID != SectionID) || in processRelocationRef()
1645 if (IsExtern || (AbiVariant == 2 && Value.SectionID != SectionID)) { in processRelocationRef()
1682 if (Value.SymbolName || Value.SectionID != TOCValue.SectionID) in processRelocationRef()
1953 auto &Section = Sections[SectionID]; in processX86_64GOTTPOFFRelocation()
1979 RelocationEntry RE(SectionID, in processX86_64GOTTPOFFRelocation()
[all …]
H A DRuntimeDyldImpl.h120 unsigned SectionID;
192 unsigned SectionID = 0;
199 return SectionID == Other.SectionID && Offset == Other.Offset &&
204 if (SectionID != Other.SectionID)
205 return SectionID < Other.SectionID;
222 : Offset(Offset), SectionID(SectionID), Flags(Flags) {} in SymbolTableEntry()
232 unsigned SectionID = 0; variable
465 if (SectionID == AbsoluteSymbolSection) in getSectionLoadAddress()
472 if (SectionID == AbsoluteSymbolSection) in getSectionAddress()
475 return Sections[SectionID].getAddress(); in getSectionAddress()
[all …]
H A DRuntimeDyldELF.h30 uint64_t SymOffset = 0, SID SectionID = 0);
42 bool resolveAArch64ShortBranch(unsigned SectionID, relocation_iterator RelI,
45 void resolveAArch64Branch(unsigned SectionID, const RelocationValueRef &Value,
102 SectionEntry &getSection(unsigned SectionID) { return Sections[SectionID]; } in getSection() argument
113 void resolveGOTOffsetRelocation(unsigned SectionID, uint64_t Offset,
122 void *computePlaceholderAddress(unsigned SectionID, uint64_t Offset) const;
126 …void processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType, RelocationValu…
166 void processX86_64GOTTPOFFRelocation(unsigned SectionID, uint64_t Offset,
171 void processX86_64TLSRelocation(unsigned SectionID, uint64_t Offset,
190 processRelocationRef(unsigned SectionID, relocation_iterator RelI,
H A DRuntimeDyld.cpp336 unsigned SectionID; in loadObjectImpl() local
339 SectionID = *SectionIDOrErr; in loadObjectImpl()
379 unsigned SectionID = 0; in loadObjectImpl() local
382 SectionID = *SectionIDOrErr; in loadObjectImpl()
752 unsigned SectionID = Sections.size(); in emitCommonSymbols() local
835 unsigned SectionID = Sections.size(); in emitSection() local
927 return SectionID; in emitSection()
936 unsigned SectionID = 0; in findOrEmitSection() local
939 SectionID = i->second; in findOrEmitSection()
942 SectionID = *SectionIDOrErr; in findOrEmitSection()
[all …]
H A DRuntimeDyldMachO.h29 unsigned SectionID; member
64 RelocationEntry getRelocationEntry(unsigned SectionID, in getRelocationEntry() argument
78 return RelocationEntry(SectionID, Offset, RelType, 0, IsPCRel, Size); in getRelocationEntry()
83 processScatteredVANILLA(unsigned SectionID, relocation_iterator RelI,
132 SectionEntry &getSection(unsigned SectionID) { return Sections[SectionID]; } in getSection() argument
H A DRuntimeDyldCOFF.cpp82 uint64_t RuntimeDyldCOFF::getDLLImportOffset(unsigned SectionID, StubMap &Stubs, in getDLLImportOffset() argument
95 assert(SectionID < Sections.size() && "SectionID out of range"); in getDLLImportOffset()
96 auto &Sec = Sections[SectionID]; in getDLLImportOffset()
101 RelocationEntry RE(SectionID, EntryOffset, PointerReloc, 0, false, in getDLLImportOffset()
H A DRuntimeDyldMachO.cpp48 uint8_t *Src = Sections[RE.SectionID].getAddress() + RE.Offset; in memcpyAddend()
55 unsigned SectionID, relocation_iterator RelI, in processScatteredVANILLA() argument
64 SectionEntry &Section = Sections[SectionID]; in processScatteredVANILLA()
87 RelocationEntry R(SectionID, Offset, RelocType, Addend, IsPCRel, Size); in processScatteredVANILLA()
119 Value.SectionID = SymInfo.getSectionID(); in getRelocationValueRef()
130 Value.SectionID = *SectionIDOrErr; in getRelocationValueRef()
150 const SectionEntry &Section = Sections[RE.SectionID]; in dumpRelocationToResolve()
154 dbgs() << "resolveRelocation Section: " << RE.SectionID in dumpRelocationToResolve()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldCOFFThumb.h59 processRelocationRef(unsigned SectionID, in processRelocationRef() argument
83 SectionEntry &AddendSection = Sections[SectionID]; in processRelocationRef()
101 LLVM_DEBUG(dbgs() << "\t\tIn Section " << SectionID << " Offset " << Offset in processRelocationRef()
110 TargetSectionID = SectionID; in processRelocationRef()
111 TargetOffset = getDLLImportOffset(SectionID, Stubs, TargetName, true); in processRelocationRef()
125 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef()
174 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef()
186 const auto Section = Sections[RE.SectionID]; in resolveRelocation()
228 assert(static_cast<uint32_t>(RE.SectionID) <= UINT16_MAX && in resolveRelocation()
232 << RE.SectionID << '\n'); in resolveRelocation()
[all …]
H A DRuntimeDyldCOFFX86_64.h88 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
144 generateRelocationStub(unsigned SectionID, StringRef TargetName, in generateRelocationStub() argument
148 SectionEntry &Section = Sections[SectionID]; in generateRelocationStub()
151 OriginalRelValueRef.SectionID = SectionID; in generateRelocationStub()
178 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub()
190 processRelocationRef(unsigned SectionID, in processRelocationRef() argument
211 SectionEntry &Section = Sections[SectionID]; in processRelocationRef()
224 TargetSectionID = SectionID; in processRelocationRef()
225 TargetOffset = getDLLImportOffset(SectionID, Stubs, TargetName); in processRelocationRef()
251 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef()
[all …]
H A DRuntimeDyldCOFFI386.h37 processRelocationRef(unsigned SectionID, in processRelocationRef() argument
64 TargetSectionID = SectionID; in processRelocationRef()
65 TargetOffset = getDLLImportOffset(SectionID, Stubs, TargetName, true); in processRelocationRef()
80 SectionEntry &AddendSection = Sections[SectionID]; in processRelocationRef()
100 LLVM_DEBUG(dbgs() << "\t\tIn Section " << SectionID << " Offset " << Offset in processRelocationRef()
105 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef()
130 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef()
143 const auto Section = Sections[RE.SectionID]; in resolveRelocation()
201 assert(static_cast<uint32_t>(RE.SectionID) <= UINT16_MAX && in resolveRelocation()
205 << RE.SectionID << '\n'); in resolveRelocation()
[all …]
H A DRuntimeDyldCOFFAArch64.h100 generateRelocationStub(unsigned SectionID, StringRef TargetName, in generateRelocationStub() argument
104 SectionEntry &Section = Sections[SectionID]; in generateRelocationStub()
107 OriginalRelValueRef.SectionID = SectionID; in generateRelocationStub()
128 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub()
169 SectionEntry &AddendSection = Sections[SectionID]; in processRelocationRef()
177 TargetSectionID = SectionID; in processRelocationRef()
204 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef()
247 RelocationEntry RE(SectionID, Offset, RelType, Addend); in processRelocationRef()
257 const auto Section = Sections[RE.SectionID]; in resolveRelocation()
348 assert(static_cast<uint32_t>(RE.SectionID) <= UINT16_MAX && in resolveRelocation()
[all …]
H A DRuntimeDyldELFMips.cpp16 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
21 RE.SymOffset, RE.SectionID); in resolveRelocation()
24 RE.SymOffset, RE.SectionID); in resolveRelocation()
33 const SectionEntry &Section = Sections[RE.SectionID]; in evaluateRelocation()
44 const SectionEntry &Section = Sections[RE.SectionID]; in applyRelocation()
110 int64_t Addend, uint64_t SymOffset, SID SectionID) { in evaluateMIPS64Relocation() argument
120 << " SID: " << format("%d", SectionID) in evaluateMIPS64Relocation()
267 int64_t Addend, uint64_t SymOffset, SID SectionID) { in resolveMIPSN32Relocation() argument
276 int64_t Addend, uint64_t SymOffset, SID SectionID) { in resolveMIPSN64Relocation() argument
291 SectionID); in resolveMIPSN64Relocation()
[all …]
H A DRuntimeDyldMachOARM.h50 bool isAddrTargetThumb(unsigned SectionID, uint64_t Offset) { in isAddrTargetThumb() argument
51 auto TargetObjAddr = Sections[SectionID].getObjAddress() + Offset; in isAddrTargetThumb()
63 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend()
134 return processHALFSECTDIFFRelocation(SectionID, RelI, Obj, in processRelocationRef()
159 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
196 addRelocationForSection(RE, Value.SectionID); in processRelocationRef()
204 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
309 SectionEntry &Section = Sections[RE.SectionID]; in processBranchRelocation()
329 RE.SectionID, StubTargetAddr - Section.getAddress(), in processBranchRelocation()
335 addRelocationForSection(StubRE, Value.SectionID); in processBranchRelocation()
[all …]
H A DRuntimeDyldMachOX86_64.h33 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument
44 return processSubtractRelocation(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef()
49 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
79 addRelocationForSection(RE, Value.SectionID); in processRelocationRef()
87 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
122 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument
130 SectionEntry &Section = Sections[RE.SectionID]; in processGOTRelocation()
141 RelocationEntry GOTRE(RE.SectionID, Section.getStubOffset(), in processGOTRelocation()
147 addRelocationForSection(GOTRE, Value.SectionID); in processGOTRelocation()
151 RelocationEntry TargetRE(RE.SectionID, RE.Offset, in processGOTRelocation()
[all …]
H A DRuntimeDyldMachOI386.h33 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument
46 return processSECTDIFFRelocation(SectionID, RelI, Obj, in processRelocationRef()
49 return processScatteredVANILLA(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef()
66 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
92 addRelocationForSection(RE, Value.SectionID); in processRelocationRef()
100 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
127 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument
139 Section, SectionID); in finalizeSection()
145 processSECTDIFFRelocation(unsigned SectionID, relocation_iterator RelI, in processSECTDIFFRelocation() argument
153 SectionEntry &Section = Sections[SectionID]; in processSECTDIFFRelocation()
[all …]
H A DRuntimeDyldMachOAArch64.h35 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend()
273 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument
305 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
349 addRelocationForSection(RE, Value.SectionID); in processRelocationRef()
358 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
436 Error finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument
447 SectionEntry &Section = Sections[RE.SectionID]; in processGOTRelocation()
464 RelocationEntry GOTRE(RE.SectionID, StubOffset, in processGOTRelocation()
470 addRelocationForSection(GOTRE, Value.SectionID); in processGOTRelocation()
474 RelocationEntry TargetRE(RE.SectionID, RE.Offset, RE.RelType, Offset, in processGOTRelocation()
[all …]
H A DRuntimeDyldELFMips.h34 uint64_t SymOffset, SID SectionID);
37 uint64_t SymOffset, SID SectionID);
56 uint64_t SymOffset, SID SectionID);
/llvm-project-15.0.7/bolt/include/bolt/Rewrite/
H A DExecutableFileMemoryManager.h26 unsigned SectionID, StringRef SectionName,
46 unsigned SectionID, in allocateCodeSection() argument
48 return allocateSection(Size, Alignment, SectionID, SectionName, in allocateCodeSection()
53 unsigned SectionID, StringRef SectionName, in allocateDataSection() argument
55 return allocateSection(Size, Alignment, SectionID, SectionName, in allocateDataSection()
61 unsigned SectionID, in allocateTLSSection() argument
66 Size, Alignment, SectionID, SectionName, /*IsReadOnly=*/false); in allocateTLSSection()
/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DExecutableFileMemoryManager.cpp25 unsigned SectionID, in allocateSection() argument
34 Section.setSectionID(SectionID); in allocateSection()
41 return SectionMemoryManager::allocateDataSection(Size, Alignment, SectionID, in allocateSection()
46 Ret = SectionMemoryManager::allocateCodeSection(Size, Alignment, SectionID, in allocateSection()
49 Ret = SectionMemoryManager::allocateDataSection(Size, Alignment, SectionID, in allocateSection()
70 Section.setSectionID(SectionID); in allocateSection()
79 << ", ID = " << SectionID << "\n"); in allocateSection()
/llvm-project-15.0.7/llvm/tools/llvm-rtdyld/
H A Dllvm-rtdyld.cpp193 : Name(std::string(Name)), MB(std::move(MB)), SectionID(SectionID) {} in SectionInfo()
196 unsigned SectionID = ~0U; member
203 unsigned SectionID,
302 (*SecIDMap)[SectionName] = SectionID; in allocateCodeSection()
331 (*SecIDMap)[SectionName] = SectionID; in allocateDataSection()
335 SectionID); in allocateDataSection()
662 unsigned SectionID = in applySpecificSectionMappings() local
832 unsigned SectionID; in linkAndVerify() member
890 if (SectionID != ~0U) { in linkAndVerify()
917 if (!SectionID) in linkAndVerify()
[all …]
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/
H A DRuntimeDyld.h62 void reassignSectionAddress(unsigned SectionID, uint64_t Addr);
66 unsigned SectionID, uint32_t StubOffset)>;
104 unsigned SectionID,
111 unsigned SectionID,
126 unsigned SectionID,
231 StringRef getSectionContent(unsigned SectionID) const;
235 uint64_t getSectionLoadAddress(unsigned SectionID) const;
H A DSectionMemoryManager.h118 unsigned SectionID,
127 unsigned SectionID, StringRef SectionName,
/llvm-project-15.0.7/llvm/lib/Object/
H A DSymbolSize.cpp22 if (A->SectionID != B->SectionID) in compareAddress()
23 return A->SectionID < B->SectionID ? -1 : 1; in compareAddress()
/llvm-project-15.0.7/llvm/tools/lli/
H A DForwardingMemoryManager.h34 unsigned SectionID, in allocateCodeSection() argument
36 return MemMgr->allocateCodeSection(Size, Alignment, SectionID, SectionName); in allocateCodeSection()
40 unsigned SectionID, StringRef SectionName, in allocateDataSection() argument
42 return MemMgr->allocateDataSection(Size, Alignment, SectionID, SectionName, in allocateDataSection()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/
H A DExecutionEngineBindings.cpp340 unsigned SectionID,
344 unsigned SectionID, StringRef SectionName,
373 uintptr_t Size, unsigned Alignment, unsigned SectionID, in allocateCodeSection() argument
375 return Functions.AllocateCodeSection(Opaque, Size, Alignment, SectionID, in allocateCodeSection()
380 uintptr_t Size, unsigned Alignment, unsigned SectionID, in allocateDataSection() argument
382 return Functions.AllocateDataSection(Opaque, Size, Alignment, SectionID, in allocateDataSection()

12