9 #ifndef LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_RUNTIMEDYLDCHECKERIMPL_H 10 #define LLVM_LIB_EXECUTIONENGINE_RUNTIMEDYLD_RUNTIMEDYLDCHECKERIMPL_H 20 using IsSymbolValidFunction =
29 IsSymbolValidFunction IsSymbolValid, GetSymbolInfoFunction GetSymbolInfo,
30 GetSectionInfoFunction GetSectionInfo, GetStubInfoFunction GetStubInfo,
48 uint64_t readMemoryAtAddr(uint64_t Addr,
unsigned Size)
const;
52 std::pair<uint64_t, std::string> getSectionAddr(
StringRef FileName,
54 bool IsInsideLoad)
const;
56 std::pair<uint64_t, std::string>
58 bool IsInsideLoad,
bool IsStubAddr)
const;
62 IsSymbolValidFunction IsSymbolValid;
63 GetSymbolInfoFunction GetSymbolInfo;
64 GetSectionInfoFunction GetSectionInfo;
65 GetStubInfoFunction GetStubInfo;
66 GetGOTInfoFunction GetGOTInfo;
bool checkAllRulesInBuffer(StringRef RulePrefix, MemoryBuffer *MemBuf) const
This class represents lattice values for constants.
Superclass for all disassemblers.
static bool lookup(const GsymReader &GR, DataExtractor &Data, uint64_t &Offset, uint64_t BaseAddr, uint64_t Addr, SourceLocations &SrcLocs, llvm::Error &Err)
A Lookup helper functions.
constexpr support::endianness Endianness
The endianness of all multi-byte encoded values in MessagePack.
std::set< StringRef > LookupSet
Tagged union holding either a T or a Error.
std::function< Expected< MemoryRegionInfo >(StringRef GOTContainer, StringRef TargetName)> GetGOTInfoFunction
std::function< bool(StringRef Symbol)> IsSymbolValidFunction
std::function< Expected< MemoryRegionInfo >(StringRef SymbolName)> GetSymbolInfoFunction
RuntimeDyld invariant checker for verifying that RuntimeDyld has correctly applied relocations...
std::function< Expected< MemoryRegionInfo >(StringRef StubContainer, StringRef TargetName)> GetStubInfoFunction
This interface provides simple read-only access to a block of memory, and provides simple methods for...
RuntimeDyldCheckerImpl(IsSymbolValidFunction IsSymbolValid, GetSymbolInfoFunction GetSymbolInfo, GetSectionInfoFunction GetSectionInfo, GetStubInfoFunction GetStubInfo, GetGOTInfoFunction GetGOTInfo, support::endianness Endianness, MCDisassembler *Disassembler, MCInstPrinter *InstPrinter, llvm::raw_ostream &ErrStream)
This is an instance of a target assembly language printer that converts an MCInst to valid target ass...
bool check(StringRef CheckExpr) const
std::function< Expected< MemoryRegionInfo >(StringRef FileName, StringRef SectionName)> GetSectionInfoFunction
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.