LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::RuntimeDyldCOFFX86_64 Class Reference

#include "ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFX86_64.h"

Inheritance diagram for llvm::RuntimeDyldCOFFX86_64:
Inheritance graph
[legend]
Collaboration diagram for llvm::RuntimeDyldCOFFX86_64:
Collaboration graph
[legend]

Public Member Functions

 RuntimeDyldCOFFX86_64 (RuntimeDyld::MemoryManager &MM, JITSymbolResolver &Resolver)
 
unsigned getMaxStubSize () override
 
void resolveRelocation (const RelocationEntry &RE, uint64_t Value) override
 A object file specific relocation resolver. More...
 
Expected< relocation_iteratorprocessRelocationRef (unsigned SectionID, relocation_iterator RelI, const ObjectFile &Obj, ObjSectionToIDMap &ObjSectionToID, StubMap &Stubs) override
 Parses one or more object file relocations (some object files use relocation pairs) and stores it to Relocations or SymbolRelocations (this depends on the object file type). More...
 
unsigned getStubAlignment () override
 
void registerEHFrames () override
 
Error finalizeLoad (const ObjectFile &Obj, ObjSectionToIDMap &SectionMap) override
 
- Public Member Functions inherited from llvm::RuntimeDyldCOFF
std::unique_ptr< RuntimeDyld::LoadedObjectInfoloadObject (const object::ObjectFile &Obj) override
 
bool isCompatibleFile (const object::ObjectFile &Obj) const override
 
- Public Member Functions inherited from llvm::RuntimeDyldImpl
 RuntimeDyldImpl (RuntimeDyld::MemoryManager &MemMgr, JITSymbolResolver &Resolver)
 
virtual ~RuntimeDyldImpl ()
 
void setProcessAllSections (bool ProcessAllSections)
 
void setRuntimeDyldChecker (RuntimeDyldCheckerImpl *Checker)
 
uint8_t * getSymbolLocalAddress (StringRef Name) const
 
JITEvaluatedSymbol getSymbol (StringRef Name) const
 
void resolveRelocations ()
 
void reassignSectionAddress (unsigned SectionID, uint64_t Addr)
 
void mapSectionAddress (const void *LocalAddress, uint64_t TargetAddress)
 
bool hasError ()
 
void clearError ()
 
StringRef getErrorString ()
 
void deregisterEHFrames ()
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::RuntimeDyldCOFF
static std::unique_ptr< RuntimeDyldCOFFcreate (Triple::ArchType Arch, RuntimeDyld::MemoryManager &MemMgr, JITSymbolResolver &Resolver)
 
- Protected Types inherited from llvm::RuntimeDyldImpl
typedef SmallVector< SectionEntry, 64 > SectionList
 
typedef unsigned SID
 
typedef std::map< SectionRef, unsignedObjSectionToIDMap
 
typedef std::vector< SymbolRefCommonSymbolList
 
typedef SmallVector< RelocationEntry, 64 > RelocationList
 
typedef std::map< RelocationValueRef, uintptr_t > StubMap
 
- Protected Member Functions inherited from llvm::RuntimeDyldCOFF
 RuntimeDyldCOFF (RuntimeDyld::MemoryManager &MemMgr, JITSymbolResolver &Resolver)
 
uint64_t getSymbolOffset (const SymbolRef &Sym)
 
- Protected Member Functions inherited from llvm::RuntimeDyldImpl
uint64_t getSectionLoadAddress (unsigned SectionID) const
 
uint8_t * getSectionAddress (unsigned SectionID) const
 
void writeInt16BE (uint8_t *Addr, uint16_t Value)
 
void writeInt32BE (uint8_t *Addr, uint32_t Value)
 
void writeInt64BE (uint8_t *Addr, uint64_t Value)
 
virtual void setMipsABI (const ObjectFile &Obj)
 
uint64_t readBytesUnaligned (uint8_t *Src, unsigned Size) const
 Endian-aware read Read the least significant Size bytes from Src. More...
 
void writeBytesUnaligned (uint64_t Value, uint8_t *Dst, unsigned Size) const
 Endian-aware write. More...
 
virtual JITSymbolFlags getJITSymbolFlags (const BasicSymbolRef &Sym)
 Generate JITSymbolFlags from a libObject symbol. More...
 
virtual uint64_t modifyAddressBasedOnFlags (uint64_t Addr, JITSymbolFlags Flags) const
 Modify the given target address based on the given symbol flags. More...
 
Error emitCommonSymbols (const ObjectFile &Obj, CommonSymbolList &CommonSymbols)
 Given the common symbols discovered in the object file, emit a new section for them and update the symbol mappings in the object and symbol table. More...
 
Expected< unsignedemitSection (const ObjectFile &Obj, const SectionRef &Section, bool IsCode)
 Emits section data from the object file to the MemoryManager. More...
 
Expected< unsignedfindOrEmitSection (const ObjectFile &Obj, const SectionRef &Section, bool IsCode, ObjSectionToIDMap &LocalSections)
 Find Section in LocalSections. More...
 
void addRelocationForSection (const RelocationEntry &RE, unsigned SectionID)
 
void addRelocationForSymbol (const RelocationEntry &RE, StringRef SymbolName)
 
uint8_t * createStubFunction (uint8_t *Addr, unsigned AbiVariant=0)
 Emits long jump instruction to Addr. More...
 
void resolveRelocationList (const RelocationList &Relocs, uint64_t Value)
 Resolves relocations from Relocs list with address from Value. More...
 
Error resolveExternalSymbols ()
 Resolve relocations to external symbols. More...
 
Error computeTotalAllocSize (const ObjectFile &Obj, uint64_t &CodeSize, uint32_t &CodeAlign, uint64_t &RODataSize, uint32_t &RODataAlign, uint64_t &RWDataSize, uint32_t &RWDataAlign)
 
unsigned computeGOTSize (const ObjectFile &Obj)
 
unsigned computeSectionStubBufSize (const ObjectFile &Obj, const SectionRef &Section)
 
Expected< ObjSectionToIDMaploadObjectImpl (const object::ObjectFile &Obj)
 
virtual size_t getGOTEntrySize ()
 
virtual bool relocationNeedsGot (const RelocationRef &R) const
 
virtual bool relocationNeedsStub (const RelocationRef &R) const
 
- Protected Attributes inherited from llvm::RuntimeDyldImpl
RuntimeDyld::MemoryManagerMemMgr
 
JITSymbolResolverResolver
 
RuntimeDyldCheckerImplChecker
 
SectionList Sections
 
RTDyldSymbolTable GlobalSymbolTable
 
std::unordered_map< unsigned, RelocationListRelocations
 
StringMap< RelocationListExternalSymbolRelocations
 
Triple::ArchType Arch
 
bool IsTargetLittleEndian
 
bool IsMipsO32ABI
 
bool IsMipsN32ABI
 
bool IsMipsN64ABI
 
bool ProcessAllSections
 
sys::Mutex lock
 
bool HasError
 
std::string ErrorStr
 
- Static Protected Attributes inherited from llvm::RuntimeDyldImpl
static const unsigned AbsoluteSymbolSection = ~0U
 

Detailed Description

Definition at line 25 of file RuntimeDyldCOFFX86_64.h.

Constructor & Destructor Documentation

◆ RuntimeDyldCOFFX86_64()

llvm::RuntimeDyldCOFFX86_64::RuntimeDyldCOFFX86_64 ( RuntimeDyld::MemoryManager MM,
JITSymbolResolver Resolver 
)
inline

Definition at line 35 of file RuntimeDyldCOFFX86_64.h.

Member Function Documentation

◆ finalizeLoad()

Error llvm::RuntimeDyldCOFFX86_64::finalizeLoad ( const ObjectFile Obj,
ObjSectionToIDMap SectionMap 
)
inlineoverridevirtual

◆ getMaxStubSize()

unsigned llvm::RuntimeDyldCOFFX86_64::getMaxStubSize ( )
inlineoverridevirtual

Implements llvm::RuntimeDyldImpl.

Definition at line 39 of file RuntimeDyldCOFFX86_64.h.

◆ getStubAlignment()

unsigned llvm::RuntimeDyldCOFFX86_64::getStubAlignment ( )
inlineoverridevirtual

Implements llvm::RuntimeDyldImpl.

Definition at line 186 of file RuntimeDyldCOFFX86_64.h.

◆ processRelocationRef()

Expected<relocation_iterator> llvm::RuntimeDyldCOFFX86_64::processRelocationRef ( unsigned  SectionID,
relocation_iterator  RelI,
const ObjectFile Obj,
ObjSectionToIDMap ObjSectionToID,
StubMap Stubs 
)
inlineoverridevirtual

◆ registerEHFrames()

void llvm::RuntimeDyldCOFFX86_64::registerEHFrames ( )
inlineoverridevirtual

◆ resolveRelocation()

void llvm::RuntimeDyldCOFFX86_64::resolveRelocation ( const RelocationEntry RE,
uint64_t  Value 
)
inlineoverridevirtual

The documentation for this class was generated from the following file: