LLVM 22.0.0git
|
MachOAbstractFixupEntry is an abstract class representing a fixup in a MH_DYLDLINK file. More...
#include "llvm/Object/MachO.h"
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 Member Functions | |
LLVM_ABI void | moveToFirst () |
LLVM_ABI void | moveToEnd () |
uint64_t | textAddress () const |
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.
MachOAbstractFixupEntry::MachOAbstractFixupEntry | ( | Error * | Err, |
const MachOObjectFile * | O ) |
Definition at line 3251 of file MachOObjectFile.cpp.
Referenced by llvm::object::MachOChainedFixupEntry::MachOChainedFixupEntry().
int64_t MachOAbstractFixupEntry::addend | ( | ) | const |
Definition at line 3296 of file MachOObjectFile.cpp.
References Addend.
uint64_t MachOAbstractFixupEntry::address | ( | ) | const |
Definition at line 3290 of file MachOObjectFile.cpp.
References O, SegmentIndex, and SegmentOffset.
uint32_t MachOAbstractFixupEntry::flags | ( | ) | const |
Definition at line 3298 of file MachOObjectFile.cpp.
References Flags.
void MachOAbstractFixupEntry::moveNext | ( | ) |
Definition at line 3315 of file MachOObjectFile.cpp.
|
protected |
Definition at line 3313 of file MachOObjectFile.cpp.
References Done.
Referenced by llvm::object::MachOChainedFixupEntry::moveToEnd().
|
protected |
Definition at line 3304 of file MachOObjectFile.cpp.
References Addend, Done, Flags, Ordinal, SegmentIndex, and SegmentOffset.
Referenced by llvm::object::MachOChainedFixupEntry::moveToFirst().
int MachOAbstractFixupEntry::ordinal | ( | ) | const |
Definition at line 3300 of file MachOObjectFile.cpp.
References Ordinal.
|
inline |
Definition at line 348 of file MachO.h.
References PointerValue.
|
inline |
Definition at line 355 of file MachO.h.
References RawValue.
StringRef MachOAbstractFixupEntry::sectionName | ( | ) | const |
Definition at line 3286 of file MachOObjectFile.cpp.
References O, SegmentIndex, and SegmentOffset.
uint64_t MachOAbstractFixupEntry::segmentAddress | ( | ) | const |
Definition at line 3278 of file MachOObjectFile.cpp.
References O, and SegmentIndex.
int32_t MachOAbstractFixupEntry::segmentIndex | ( | ) | const |
Definition at line 3272 of file MachOObjectFile.cpp.
References SegmentIndex.
StringRef MachOAbstractFixupEntry::segmentName | ( | ) | const |
Definition at line 3282 of file MachOObjectFile.cpp.
References O, and SegmentIndex.
uint64_t MachOAbstractFixupEntry::segmentOffset | ( | ) | const |
Definition at line 3274 of file MachOObjectFile.cpp.
References SegmentOffset.
StringRef MachOAbstractFixupEntry::symbolName | ( | ) | const |
Definition at line 3294 of file MachOObjectFile.cpp.
References SymbolName.
|
inlineprotected |
Definition at line 376 of file MachO.h.
Referenced by llvm::object::MachOChainedFixupEntry::moveNext().
StringRef MachOAbstractFixupEntry::typeName | ( | ) | const |
Definition at line 3302 of file MachOObjectFile.cpp.
|
protected |
Definition at line 367 of file MachO.h.
Referenced by addend(), llvm::object::MachOChainedFixupEntry::moveNext(), and moveToFirst().
|
protected |
Definition at line 370 of file MachO.h.
Referenced by llvm::object::MachOChainedFixupEntry::moveNext(), moveToEnd(), moveToFirst(), llvm::object::MachOChainedFixupEntry::moveToFirst(), and llvm::object::MachOChainedFixupEntry::operator==().
|
protected |
Definition at line 360 of file MachO.h.
Referenced by MachOAbstractFixupEntry(), llvm::object::MachOChainedFixupEntry::MachOChainedFixupEntry(), and llvm::object::MachOChainedFixupEntry::moveNext().
|
protected |
Definition at line 366 of file MachO.h.
Referenced by flags(), llvm::object::MachOChainedFixupEntry::moveNext(), and moveToFirst().
|
protected |
Definition at line 361 of file MachO.h.
Referenced by address(), MachOAbstractFixupEntry(), llvm::object::MachOChainedFixupEntry::MachOChainedFixupEntry(), llvm::object::MachOChainedFixupEntry::moveNext(), sectionName(), segmentAddress(), and segmentName().
|
protected |
Definition at line 365 of file MachO.h.
Referenced by llvm::object::MachOChainedFixupEntry::moveNext(), moveToFirst(), and ordinal().
|
protected |
Definition at line 368 of file MachO.h.
Referenced by llvm::object::MachOChainedFixupEntry::moveNext(), and pointerValue().
|
protected |
Definition at line 369 of file MachO.h.
Referenced by llvm::object::MachOChainedFixupEntry::moveNext(), and rawValue().
|
protected |
Definition at line 363 of file MachO.h.
Referenced by address(), llvm::object::MachOChainedFixupEntry::moveNext(), moveToFirst(), sectionName(), segmentAddress(), segmentIndex(), and segmentName().
|
protected |
Definition at line 362 of file MachO.h.
Referenced by address(), llvm::object::MachOChainedFixupEntry::moveNext(), moveToFirst(), sectionName(), and segmentOffset().
|
protected |
Definition at line 364 of file MachO.h.
Referenced by llvm::object::MachOChainedFixupEntry::moveNext(), and symbolName().