LLVM 20.0.0git
|
MachOAbstractFixupEntry is an abstract class representing a fixup in a MH_DYLDLINK file. More...
#include "llvm/Object/MachO.h"
Public Member Functions | |
MachOAbstractFixupEntry (Error *Err, const MachOObjectFile *O) | |
int32_t | segmentIndex () const |
uint64_t | segmentOffset () const |
uint64_t | segmentAddress () const |
StringRef | segmentName () const |
StringRef | sectionName () const |
StringRef | typeName () const |
StringRef | symbolName () const |
uint32_t | flags () const |
int64_t | addend () const |
int | ordinal () const |
uint64_t | address () const |
uint64_t | pointerValue () const |
uint64_t | rawValue () const |
void | moveNext () |
Protected Member Functions | |
void | moveToFirst () |
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 3250 of file MachOObjectFile.cpp.
References llvm::object::MachOObjectFile::getSegment64LoadCommand(), llvm::object::MachOObjectFile::getSegmentLoadCommand(), llvm::object::MachOObjectFile::load_commands(), O, llvm::MachO::segment_command_64::segname, and llvm::MachO::segment_command_64::vmaddr.
int64_t MachOAbstractFixupEntry::addend | ( | ) | const |
Definition at line 3295 of file MachOObjectFile.cpp.
References Addend.
uint64_t MachOAbstractFixupEntry::address | ( | ) | const |
Definition at line 3289 of file MachOObjectFile.cpp.
References llvm::object::MachOObjectFile::BindRebaseAddress(), O, SegmentIndex, and SegmentOffset.
uint32_t MachOAbstractFixupEntry::flags | ( | ) | const |
Definition at line 3297 of file MachOObjectFile.cpp.
References Flags.
void MachOAbstractFixupEntry::moveNext | ( | ) |
Definition at line 3314 of file MachOObjectFile.cpp.
|
protected |
Definition at line 3312 of file MachOObjectFile.cpp.
References Done.
Referenced by llvm::object::MachOChainedFixupEntry::moveToEnd().
|
protected |
Definition at line 3303 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 3299 of file MachOObjectFile.cpp.
References Ordinal.
|
inline |
Definition at line 344 of file MachO.h.
References PointerValue.
|
inline |
Definition at line 351 of file MachO.h.
References RawValue.
StringRef MachOAbstractFixupEntry::sectionName | ( | ) | const |
Definition at line 3285 of file MachOObjectFile.cpp.
References llvm::object::MachOObjectFile::BindRebaseSectionName(), O, SegmentIndex, and SegmentOffset.
uint64_t MachOAbstractFixupEntry::segmentAddress | ( | ) | const |
Definition at line 3277 of file MachOObjectFile.cpp.
References llvm::object::MachOObjectFile::BindRebaseAddress(), O, and SegmentIndex.
int32_t MachOAbstractFixupEntry::segmentIndex | ( | ) | const |
Definition at line 3271 of file MachOObjectFile.cpp.
References SegmentIndex.
StringRef MachOAbstractFixupEntry::segmentName | ( | ) | const |
Definition at line 3281 of file MachOObjectFile.cpp.
References llvm::object::MachOObjectFile::BindRebaseSegmentName(), O, and SegmentIndex.
uint64_t MachOAbstractFixupEntry::segmentOffset | ( | ) | const |
Definition at line 3273 of file MachOObjectFile.cpp.
References SegmentOffset.
StringRef MachOAbstractFixupEntry::symbolName | ( | ) | const |
Definition at line 3293 of file MachOObjectFile.cpp.
References SymbolName.
|
inlineprotected |
Definition at line 372 of file MachO.h.
Referenced by llvm::object::MachOChainedFixupEntry::moveNext().
StringRef MachOAbstractFixupEntry::typeName | ( | ) | const |
Definition at line 3301 of file MachOObjectFile.cpp.
|
protected |
Definition at line 363 of file MachO.h.
Referenced by addend(), llvm::object::MachOChainedFixupEntry::moveNext(), and moveToFirst().
|
protected |
Definition at line 366 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 356 of file MachO.h.
Referenced by llvm::object::MachOChainedFixupEntry::MachOChainedFixupEntry(), and llvm::object::MachOChainedFixupEntry::moveNext().
|
protected |
Definition at line 362 of file MachO.h.
Referenced by flags(), llvm::object::MachOChainedFixupEntry::moveNext(), and moveToFirst().
|
protected |
Definition at line 357 of file MachO.h.
Referenced by address(), MachOAbstractFixupEntry(), llvm::object::MachOChainedFixupEntry::MachOChainedFixupEntry(), llvm::object::MachOChainedFixupEntry::moveNext(), sectionName(), segmentAddress(), and segmentName().
|
protected |
Definition at line 361 of file MachO.h.
Referenced by llvm::object::MachOChainedFixupEntry::moveNext(), moveToFirst(), and ordinal().
|
protected |
Definition at line 364 of file MachO.h.
Referenced by llvm::object::MachOChainedFixupEntry::moveNext(), and pointerValue().
|
protected |
Definition at line 365 of file MachO.h.
Referenced by llvm::object::MachOChainedFixupEntry::moveNext(), and rawValue().
|
protected |
Definition at line 359 of file MachO.h.
Referenced by address(), llvm::object::MachOChainedFixupEntry::moveNext(), moveToFirst(), sectionName(), segmentAddress(), segmentIndex(), and segmentName().
|
protected |
Definition at line 358 of file MachO.h.
Referenced by address(), llvm::object::MachOChainedFixupEntry::moveNext(), moveToFirst(), sectionName(), and segmentOffset().
|
protected |
Definition at line 360 of file MachO.h.
Referenced by llvm::object::MachOChainedFixupEntry::moveNext(), and symbolName().