LLVM: llvm::object::MachOAbstractFixupEntry Class Reference (original) (raw)

MachOAbstractFixupEntry is an abstract class representing a fixup in a MH_DYLDLINK file. More...

#include "[llvm/Object/MachO.h](Object%5F2MachO%5F8h%5Fsource.html)"

Public Member Functions
LLVM_ABI MachOAbstractFixupEntry (Error *Err, const MachOObjectFile *O)
LLVM_ABI int32_t segmentIndex () const
LLVM_ABI uint64_t segmentOffset () const
LLVM_ABI uint64_t segmentAddress () const
LLVM_ABI StringRef segmentName () const
LLVM_ABI StringRef sectionName () const
LLVM_ABI StringRef typeName () const
LLVM_ABI StringRef symbolName () const
LLVM_ABI uint32_t flags () const
LLVM_ABI int64_t addend () const
LLVM_ABI int ordinal () const
LLVM_ABI uint64_t address () const
uint64_t pointerValue () const
uint64_t rawValue () const
LLVM_ABI void moveNext ()
Protected Attributes
Error * E
const MachOObjectFile * O
uint64_t SegmentOffset = 0
int32_t SegmentIndex = -1
StringRef SymbolName
int32_t Ordinal = 0
uint32_t Flags = 0
int64_t Addend = 0
uint64_t PointerValue = 0
uint64_t RawValue = 0
bool Done = false

MachOAbstractFixupEntry is an abstract class representing a fixup in a MH_DYLDLINK file.

Fixups generally represent rebases and binds. Binds also subdivide into additional subtypes (weak, lazy, reexport).

The two concrete subclasses of MachOAbstractFixupEntry are:

MachORebaseBindEntry - for dyld opcode-based tables, including threaded- rebase, where rebases are mixed in with other bind opcodes. MachOChainedFixupEntry - for pointer chains embedded in data pages.

Definition at line 324 of file MachO.h.

addend()

int64_t MachOAbstractFixupEntry::addend ( ) const

address()

uint64_t MachOAbstractFixupEntry::address ( ) const

flags()

uint32_t MachOAbstractFixupEntry::flags ( ) const

moveNext()

void MachOAbstractFixupEntry::moveNext ( )

moveToEnd()

void MachOAbstractFixupEntry::moveToEnd ( ) protected

moveToFirst()

void MachOAbstractFixupEntry::moveToFirst ( ) protected

ordinal()

int MachOAbstractFixupEntry::ordinal ( ) const

pointerValue()

uint64_t llvm::object::MachOAbstractFixupEntry::pointerValue ( ) const inline

Returns

the VM Address pointed to by this fixup. Use pointerValue() to compare against other VM Addresses, such as section addresses or segment vmaddrs.

Definition at line 346 of file MachO.h.

References PointerValue.

rawValue()

uint64_t llvm::object::MachOAbstractFixupEntry::rawValue ( ) const inline

Returns

the raw "on-disk" representation of the fixup. For Threaded rebases and Chained pointers these values are generally encoded into various different pointer formats. This value is exposed in API for tools that want to display and annotate the raw bits.

Definition at line 353 of file MachO.h.

References RawValue.

sectionName()

StringRef MachOAbstractFixupEntry::sectionName ( ) const

segmentAddress()

uint64_t MachOAbstractFixupEntry::segmentAddress ( ) const

segmentIndex()

int32_t MachOAbstractFixupEntry::segmentIndex ( ) const

segmentName()

StringRef MachOAbstractFixupEntry::segmentName ( ) const

segmentOffset()

uint64_t MachOAbstractFixupEntry::segmentOffset ( ) const

symbolName()

StringRef MachOAbstractFixupEntry::symbolName ( ) const

textAddress()

uint64_t llvm::object::MachOAbstractFixupEntry::textAddress ( ) const inlineprotected

typeName()

StringRef MachOAbstractFixupEntry::typeName ( ) const

Addend

int64_t llvm::object::MachOAbstractFixupEntry::Addend = 0 protected

Done

bool llvm::object::MachOAbstractFixupEntry::Done = false protected

E

Error* llvm::object::MachOAbstractFixupEntry::E protected

Flags

uint32_t llvm::object::MachOAbstractFixupEntry::Flags = 0 protected

O

Ordinal

int32_t llvm::object::MachOAbstractFixupEntry::Ordinal = 0 protected

PointerValue

uint64_t llvm::object::MachOAbstractFixupEntry::PointerValue = 0 protected

RawValue

uint64_t llvm::object::MachOAbstractFixupEntry::RawValue = 0 protected

SegmentIndex

int32_t llvm::object::MachOAbstractFixupEntry::SegmentIndex = -1 protected

SegmentOffset

uint64_t llvm::object::MachOAbstractFixupEntry::SegmentOffset = 0 protected

SymbolName

StringRef llvm::object::MachOAbstractFixupEntry::SymbolName protected

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