LLVM
15.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 3195 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, llvm::AMDGPU::CPol::SLC, and llvm::MachO::segment_command_64::vmaddr.
int64_t MachOAbstractFixupEntry::addend | ( | ) | const |
Definition at line 3240 of file MachOObjectFile.cpp.
References Addend.
uint64_t MachOAbstractFixupEntry::address | ( | ) | const |
Definition at line 3234 of file MachOObjectFile.cpp.
References llvm::object::MachOObjectFile::BindRebaseAddress(), O, SegmentIndex, and SegmentOffset.
uint32_t MachOAbstractFixupEntry::flags | ( | ) | const |
Definition at line 3242 of file MachOObjectFile.cpp.
References Flags.
void llvm::object::MachOAbstractFixupEntry::moveNext | ( | ) |
|
protected |
Definition at line 3257 of file MachOObjectFile.cpp.
References Done.
Referenced by llvm::object::MachOChainedFixupEntry::moveToEnd().
|
protected |
Definition at line 3248 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 3244 of file MachOObjectFile.cpp.
References Ordinal.
|
inline |
Definition at line 329 of file MachO.h.
References PointerValue.
|
inline |
Definition at line 336 of file MachO.h.
References RawValue.
StringRef MachOAbstractFixupEntry::sectionName | ( | ) | const |
Definition at line 3230 of file MachOObjectFile.cpp.
References llvm::object::MachOObjectFile::BindRebaseSectionName(), O, SegmentIndex, and SegmentOffset.
uint64_t MachOAbstractFixupEntry::segmentAddress | ( | ) | const |
Definition at line 3222 of file MachOObjectFile.cpp.
References llvm::object::MachOObjectFile::BindRebaseAddress(), O, and SegmentIndex.
int32_t MachOAbstractFixupEntry::segmentIndex | ( | ) | const |
Definition at line 3216 of file MachOObjectFile.cpp.
References SegmentIndex.
StringRef MachOAbstractFixupEntry::segmentName | ( | ) | const |
Definition at line 3226 of file MachOObjectFile.cpp.
References llvm::object::MachOObjectFile::BindRebaseSegmentName(), O, and SegmentIndex.
uint64_t MachOAbstractFixupEntry::segmentOffset | ( | ) | const |
Definition at line 3218 of file MachOObjectFile.cpp.
References SegmentOffset.
StringRef MachOAbstractFixupEntry::symbolName | ( | ) | const |
Definition at line 3238 of file MachOObjectFile.cpp.
References SymbolName.
|
inlineprotected |
StringRef MachOAbstractFixupEntry::typeName | ( | ) | const |
Definition at line 3246 of file MachOObjectFile.cpp.
|
protected |
Definition at line 348 of file MachO.h.
Referenced by addend(), and moveToFirst().
|
protected |
Definition at line 351 of file MachO.h.
Referenced by llvm::object::MachOChainedFixupEntry::moveNext(), moveToEnd(), moveToFirst(), and llvm::object::MachOChainedFixupEntry::operator==().
|
protected |
Definition at line 341 of file MachO.h.
Referenced by llvm::object::MachOChainedFixupEntry::MachOChainedFixupEntry().
|
protected |
Definition at line 347 of file MachO.h.
Referenced by flags(), and moveToFirst().
|
protected |
Definition at line 342 of file MachO.h.
Referenced by address(), MachOAbstractFixupEntry(), llvm::object::MachOChainedFixupEntry::MachOChainedFixupEntry(), sectionName(), segmentAddress(), and segmentName().
|
protected |
Definition at line 346 of file MachO.h.
Referenced by moveToFirst(), and ordinal().
|
protected |
Definition at line 349 of file MachO.h.
Referenced by pointerValue().
|
protected |
Definition at line 350 of file MachO.h.
Referenced by rawValue().
|
protected |
Definition at line 344 of file MachO.h.
Referenced by address(), moveToFirst(), sectionName(), segmentAddress(), segmentIndex(), and segmentName().
|
protected |
Definition at line 343 of file MachO.h.
Referenced by address(), moveToFirst(), sectionName(), and segmentOffset().
|
protected |
Definition at line 345 of file MachO.h.
Referenced by symbolName().