LLVM API Documentation
#include <RuntimeDyldMachOI386.h>
Public Types | |
typedef uint32_t | TargetPtrT |
Public Member Functions | |
RuntimeDyldMachOI386 (RTDyldMemoryManager *MM) | |
unsigned | getMaxStubSize () override |
unsigned | getStubAlignment () override |
relocation_iterator | processRelocationRef (unsigned SectionID, relocation_iterator RelI, ObjectImage &ObjImg, ObjSectionToIDMap &ObjSectionToID, const SymbolTableMap &Symbols, 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). | |
void | resolveRelocation (const RelocationEntry &RE, uint64_t Value) override |
A object file specific relocation resolver. | |
void | finalizeSection (ObjectImage &ObjImg, unsigned SectionID, const SectionRef &Section) |
Definition at line 19 of file RuntimeDyldMachOI386.h.
typedef uint32_t llvm::RuntimeDyldMachOI386::TargetPtrT |
Definition at line 23 of file RuntimeDyldMachOI386.h.
llvm::RuntimeDyldMachOI386::RuntimeDyldMachOI386 | ( | RTDyldMemoryManager * | MM | ) | [inline] |
Definition at line 25 of file RuntimeDyldMachOI386.h.
void llvm::RuntimeDyldMachOI386::finalizeSection | ( | ObjectImage & | ObjImg, |
unsigned | SectionID, | ||
const SectionRef & | Section | ||
) | [inline] |
Definition at line 113 of file RuntimeDyldMachOI386.h.
References llvm::object::SectionRef::getName(), llvm::ObjectImage::getObjectFile(), Name, and llvm::RuntimeDyldMachO::populateIndirectSymbolPointersSection().
unsigned llvm::RuntimeDyldMachOI386::getMaxStubSize | ( | ) | [inline, override, virtual] |
Implements llvm::RuntimeDyldImpl.
Definition at line 28 of file RuntimeDyldMachOI386.h.
unsigned llvm::RuntimeDyldMachOI386::getStubAlignment | ( | ) | [inline, override, virtual] |
Implements llvm::RuntimeDyldImpl.
Definition at line 30 of file RuntimeDyldMachOI386.h.
relocation_iterator llvm::RuntimeDyldMachOI386::processRelocationRef | ( | unsigned | SectionID, |
relocation_iterator | RelI, | ||
ObjectImage & | Obj, | ||
ObjSectionToIDMap & | ObjSectionToID, | ||
const SymbolTableMap & | Symbols, | ||
StubMap & | Stubs | ||
) | [inline, override, virtual] |
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).
Implements llvm::RuntimeDyldImpl.
Definition at line 33 of file RuntimeDyldMachOI386.h.
References llvm::RelocationEntry::Addend, llvm::RuntimeDyldImpl::addRelocationForSection(), llvm::RuntimeDyldImpl::addRelocationForSymbol(), llvm::MachO::GENERIC_RELOC_LOCAL_SECTDIFF, llvm::MachO::GENERIC_RELOC_SECTDIFF, llvm::MachO::GENERIC_RELOC_VANILLA, llvm::object::MachOObjectFile::getAnyRelocationType(), llvm::ObjectImage::getObjectFile(), llvm::object::MachOObjectFile::getRelocation(), llvm::RuntimeDyldMachO::getRelocationEntry(), llvm::RuntimeDyldMachO::getRelocationValueRef(), llvm::RelocationEntry::IsPCRel, llvm::object::MachOObjectFile::isRelocationScattered(), llvm_unreachable, llvm::RuntimeDyldMachO::makeValueAddendPCRel(), llvm::RuntimeDyldMachO::memcpyAddend(), llvm::RelocationValueRef::Offset, llvm::RelocationValueRef::SectionID, llvm::RelocationEntry::Size, and llvm::RelocationValueRef::SymbolName.
void llvm::RuntimeDyldMachOI386::resolveRelocation | ( | const RelocationEntry & | RE, |
uint64_t | Value | ||
) | [inline, override, virtual] |
A object file specific relocation resolver.
RE | The relocation to be resolved |
Value | Target symbol address to apply the relocation action |
Implements llvm::RuntimeDyldImpl.
Definition at line 81 of file RuntimeDyldMachOI386.h.
References llvm::RelocationEntry::Addend, llvm::SectionEntry::Address, DEBUG, llvm::RuntimeDyldMachO::dumpRelocationToResolve(), llvm::RuntimeDyldImpl::Error(), llvm::MachO::GENERIC_RELOC_LOCAL_SECTDIFF, llvm::MachO::GENERIC_RELOC_PB_LA_PTR, llvm::MachO::GENERIC_RELOC_SECTDIFF, llvm::MachO::GENERIC_RELOC_VANILLA, llvm::RelocationEntry::IsPCRel, llvm_unreachable, llvm::SectionEntry::LoadAddress, llvm::RelocationEntry::Offset, llvm::RelocationEntry::RelType, llvm::ARMBuildAttrs::Section, llvm::RelocationEntry::SectionPair::SectionA, llvm::RelocationEntry::SectionPair::SectionB, llvm::RelocationEntry::SectionID, llvm::RelocationEntry::Sections, llvm::RuntimeDyldImpl::Sections, llvm::RelocationEntry::Size, and llvm::RuntimeDyldImpl::writeBytesUnaligned().