| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldImpl.h | 128 unsigned SectionID; variable 155 : Offset(offset), Addend(addend), SectionID(id), RelType(type), in RelocationEntry() 160 : Offset(offset), Addend(addend), SectionID(id), RelType(type), in RelocationEntry() 166 : Offset(offset), Addend(addend), SectionID(id), RelType(type), in RelocationEntry() 173 SectionID(id), RelType(type), Size(Size), IsPCRel(IsPCRel), in RelocationEntry() 184 SectionID(id), RelType(type), Size(Size), IsPCRel(IsPCRel), in RelocationEntry() 193 unsigned SectionID = 0; 200 return SectionID == Other.SectionID && Offset == Other.Offset && 205 return std::tie(SectionID, Offset, Addend, IsStubThumb, SymbolName) < 206 std::tie(Other.SectionID, Other.Offset, Other.Addend, [all …]
|
| H A D | RuntimeDyldELF.cpp | 648 unsigned SectionID, relocation_iterator RelI, in resolveLoongArch64ShortBranch() argument 661 Address = uint64_t(Sections[Value.SectionID].getLoadAddress()); in resolveLoongArch64ShortBranch() 664 uint64_t SourceAddress = Sections[SectionID].getLoadAddressWithOffset(Offset); in resolveLoongArch64ShortBranch() 670 resolveRelocation(Sections[SectionID], Offset, Address, RelI->getType(), in resolveLoongArch64ShortBranch() 678 resolveRelocation(Sections[SectionID], Offset, Address, RelI->getType(), in resolveLoongArch64ShortBranch() 683 void RuntimeDyldELF::resolveLoongArch64Branch(unsigned SectionID, in resolveLoongArch64Branch() argument 689 if (resolveLoongArch64ShortBranch(SectionID, RelI, Value)) in resolveLoongArch64Branch() 692 SectionEntry &Section = Sections[SectionID]; in resolveLoongArch64Branch() 709 RelocationEntry LU12I_W(SectionID, StubTargetAddr - Section.getAddress(), in resolveLoongArch64Branch() 711 RelocationEntry ORI(SectionID, StubTargetAddr - Section.getAddress() + 4, in resolveLoongArch64Branch() [all …]
|
| H A D | RuntimeDyldELF.h | 28 uint64_t SymOffset = 0, SID SectionID = 0); 40 bool resolveAArch64ShortBranch(unsigned SectionID, relocation_iterator RelI, 43 void resolveAArch64Branch(unsigned SectionID, const RelocationValueRef &Value, 53 bool resolveLoongArch64ShortBranch(unsigned SectionID, 57 void resolveLoongArch64Branch(unsigned SectionID, 75 SID SectionID); 118 SectionEntry &getSection(unsigned SectionID) { return Sections[SectionID]; } in getSection() argument 129 void resolveGOTOffsetRelocation(unsigned SectionID, uint64_t Offset, 138 void *computePlaceholderAddress(unsigned SectionID, uint64_t Offset) const; 142 …void processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType, RelocationValu… [all …]
|
| H A D | RuntimeDyld.cpp | 305 unsigned SectionID = AbsoluteSymbolSection; in loadObjectImpl() local 308 << " SID: " << SectionID in loadObjectImpl() 314 Name, SymbolTableEntry(SectionID, Addr, *JITSymFlags)); in loadObjectImpl() 337 unsigned SectionID; in loadObjectImpl() local 340 SectionID = *SectionIDOrErr; in loadObjectImpl() 345 << " SID: " << SectionID in loadObjectImpl() 351 Name, SymbolTableEntry(SectionID, SectOffset, *JITSymFlags)); in loadObjectImpl() 383 unsigned SectionID = 0; in loadObjectImpl() local 386 SectionID = *SectionIDOrErr; in loadObjectImpl() 390 LLVM_DEBUG(dbgs() << "\tSectionID: " << SectionID << "\n"); in loadObjectImpl() [all …]
|
| H A D | RuntimeDyldMachO.h | 24 unsigned SectionID; member 59 RelocationEntry getRelocationEntry(unsigned SectionID, in getRelocationEntry() argument 73 return RelocationEntry(SectionID, Offset, RelType, 0, IsPCRel, Size); in getRelocationEntry() 78 processScatteredVANILLA(unsigned SectionID, relocation_iterator RelI, 127 SectionEntry &getSection(unsigned SectionID) { return Sections[SectionID]; } in getSection() argument
|
| H A D | RuntimeDyldCOFF.cpp | 81 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 D | RuntimeDyldMachO.cpp | 47 uint8_t *Src = Sections[RE.SectionID].getAddress() + RE.Offset; in memcpyAddend() 54 unsigned SectionID, relocation_iterator RelI, in processScatteredVANILLA() argument 63 SectionEntry &Section = Sections[SectionID]; in processScatteredVANILLA() 86 RelocationEntry R(SectionID, Offset, RelocType, Addend, IsPCRel, Size); in processScatteredVANILLA() 118 Value.SectionID = SymInfo.getSectionID(); in getRelocationValueRef() 129 Value.SectionID = *SectionIDOrErr; in getRelocationValueRef() 149 const SectionEntry &Section = Sections[RE.SectionID]; in dumpRelocationToResolve() 153 dbgs() << "resolveRelocation Section: " << RE.SectionID in dumpRelocationToResolve()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| H A D | RuntimeDyldCOFFX86_64.h | 88 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() 138 assert(static_cast<int16_t>(RE.SectionID) <= INT16_MAX && "Relocation overflow"); in resolveRelocation() 139 assert(static_cast<int16_t>(RE.SectionID) >= INT16_MIN && "Relocation underflow"); in resolveRelocation() 140 writeBytesUnaligned(RE.SectionID, Target, 2); in resolveRelocation() 151 generateRelocationStub(unsigned SectionID, StringRef TargetName, in generateRelocationStub() argument 155 SectionEntry &Section = Sections[SectionID]; in generateRelocationStub() 158 OriginalRelValueRef.SectionID = SectionID; in generateRelocationStub() 185 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 197 processRelocationRef(unsigned SectionID, in processRelocationRef() argument 218 SectionEntry &Section = Sections[SectionID]; in processRelocationRef() [all …]
|
| H A D | RuntimeDyldCOFFThumb.h | 82 processRelocationRef(unsigned SectionID, in processRelocationRef() argument 106 SectionEntry &AddendSection = Sections[SectionID]; in processRelocationRef() 124 LLVM_DEBUG(dbgs() << "\t\tIn Section " << SectionID << " Offset " << Offset in processRelocationRef() 133 TargetSectionID = SectionID; in processRelocationRef() 134 TargetOffset = getDLLImportOffset(SectionID, Stubs, TargetName, true); in processRelocationRef() 148 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef() 163 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 170 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() 183 RelocationEntry(SectionID, Offset, RelType, TargetOffset + Addend); in processRelocationRef() 189 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, in processRelocationRef() [all …]
|
| H A D | RuntimeDyldCOFFI386.h | 37 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() 117 RelocationEntry(SectionID, Offset, RelType, Addend, TargetSectionID, 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) < in resolveRelocation() [all...] |
| H A D | RuntimeDyldELFMips.cpp | 16 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() 35 Addend, RE.SymOffset, 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() 136 uint64_t GOTAddr = getSectionLoadAddress(SectionToGOTMap[SectionID]); in evaluateMIPS64Relocation() 154 getSectionAddress(SectionToGOTMap[SectionID]) + SymOffset; in evaluateMIPS64Relocation() [all …]
|
| H A D | RuntimeDyldMachOARM.h | 50 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() 100 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument 134 return processHALFSECTDIFFRelocation(SectionID, RelI, Obj, in processRelocationRef() 137 return processScatteredVANILLA(SectionID, RelI, Obj, ObjSectionToID, in processRelocationRef() 159 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef() 186 RE.IsTargetThumbFunc = isAddrTargetThumb(Value.SectionID, Value.Offset); in processRelocationRef() 196 addRelocationForSection(RE, Value.SectionID); in processRelocationRef() 204 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() [all …]
|
| H A D | RuntimeDyldCOFFAArch64.h | 112 generateRelocationStub(unsigned SectionID, StringRef TargetName, in generateRelocationStub() argument 116 SectionEntry &Section = Sections[SectionID]; in generateRelocationStub() 119 OriginalRelValueRef.SectionID = SectionID; in generateRelocationStub() 140 const RelocationEntry RE(SectionID, Offset, RelType, Addend); in generateRelocationStub() 154 processRelocationRef(unsigned SectionID, object::relocation_iterator RelI, in processRelocationRef() argument 182 SectionEntry &AddendSection = Sections[SectionID]; in processRelocationRef() 190 TargetSectionID = SectionID; in processRelocationRef() 191 TargetOffset = getDLLImportOffset(SectionID, Stubs, TargetName); in processRelocationRef() 217 SectionID, TargetName, Offset, RelType, Addend, Stubs); in processRelocationRef() 254 LLVM_DEBUG(dbgs() << "\t\tIn Section " << SectionID << " Offset " << Offset in processRelocationRef() [all …]
|
| H A D | RuntimeDyldMachOX86_64.h | 33 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 D | RuntimeDyldMachOI386.h | 33 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 136 return populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID); in finalizeSection() 139 Section, SectionID); in finalizeSection() 145 processSECTDIFFRelocation(unsigned SectionID, relocation_iterator RelI, in processSECTDIFFRelocation() argument [all …]
|
| H A D | RuntimeDyldMachOAArch64.h | 35 const SectionEntry &Section = Sections[RE.SectionID]; in decodeAddend() 273 processRelocationRef(unsigned SectionID, relocation_iterator RelI, in processRelocationRef() argument 303 return processSubtractRelocation(SectionID, RelI, Obj, ObjSectionToID); in processRelocationRef() 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() [all …]
|
| H A D | RuntimeDyldELFMips.h | 34 uint64_t SymOffset, SID SectionID); 37 uint64_t SymOffset, SID SectionID); 56 uint64_t SymOffset, SID SectionID);
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-rtdyld/ |
| H A D | llvm-rtdyld.cpp | 192 SectionInfo(StringRef Name, sys::MemoryBlock MB, unsigned SectionID) in SectionInfo() 193 : Name(std::string(Name)), MB(std::move(MB)), SectionID(SectionID) {} in SectionInfo() 196 unsigned SectionID = ~0U; member 203 unsigned SectionID, 206 unsigned SectionID, StringRef SectionName, 209 allocateTLSSection(uintptr_t Size, unsigned Alignment, unsigned SectionID, 266 StringRef SectionName, unsigned SectionID) { in allocateFromSlab() argument 274 FunctionMemory.push_back(SectionInfo(SectionName, MB, SectionID)); in allocateFromSlab() 276 DataMemory.push_back(SectionInfo(SectionName, MB, SectionID)); in allocateFromSlab() 295 unsigned SectionID, in allocateCodeSection() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/ |
| H A D | RuntimeDyld.h | 63 LLVM_ABI void reassignSectionAddress(unsigned SectionID, uint64_t Addr); 67 unsigned SectionID, uint32_t StubOffset)>; 105 unsigned SectionID, 112 unsigned SectionID, 127 unsigned SectionID, 233 LLVM_ABI StringRef getSectionContent(unsigned SectionID) const; 237 LLVM_ABI uint64_t getSectionLoadAddress(unsigned SectionID) const;
|
| H A D | SectionMemoryManager.h | 119 unsigned SectionID, 128 unsigned SectionID, StringRef SectionName,
|
| /freebsd/contrib/llvm-project/llvm/tools/lli/ |
| H A D | ForwardingMemoryManager.h | 34 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()
|
| /freebsd/contrib/llvm-project/llvm/lib/Object/ |
| H A D | SymbolSize.cpp | 22 if (A->SectionID != B->SectionID) in compareAddress() 23 return A->SectionID < B->SectionID ? -1 : 1; in compareAddress()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
| H A D | ExecutionEngineBindings.cpp | 340 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()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/ |
| H A D | EPCGenericRTDyldMemoryManager.h | 58 unsigned SectionID, 62 unsigned SectionID, StringRef SectionName,
|
| /freebsd/contrib/llvm-project/llvm/include/llvm-c/ |
| H A D | ExecutionEngine.h | 174 void *Opaque, uintptr_t Size, unsigned Alignment, unsigned SectionID, 177 void *Opaque, uintptr_t Size, unsigned Alignment, unsigned SectionID,
|