LLVM 20.0.0git
|
RelocationEntry - used to represent relocations internally in the dynamic linker. More...
#include "ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h"
Classes | |
struct | SectionPair |
Public Member Functions | |
RelocationEntry (unsigned id, uint64_t offset, uint32_t type, int64_t addend) | |
RelocationEntry (unsigned id, uint64_t offset, uint32_t type, int64_t addend, uint64_t symoffset) | |
RelocationEntry (unsigned id, uint64_t offset, uint32_t type, int64_t addend, bool IsPCRel, unsigned Size) | |
RelocationEntry (unsigned id, uint64_t offset, uint32_t type, int64_t addend, unsigned SectionA, uint64_t SectionAOffset, unsigned SectionB, uint64_t SectionBOffset, bool IsPCRel, unsigned Size) | |
RelocationEntry (unsigned id, uint64_t offset, uint32_t type, int64_t addend, unsigned SectionA, uint64_t SectionAOffset, unsigned SectionB, uint64_t SectionBOffset, bool IsPCRel, unsigned Size, bool IsTargetThumbFunc) | |
Public Attributes | |
uint64_t | Offset |
Offset - offset into the section. | |
int64_t | Addend |
Addend - the relocation addend encoded in the instruction itself. | |
unsigned | SectionID |
SectionID - the section this relocation points to. | |
uint32_t | RelType |
RelType - relocation type. | |
union { | |
uint64_t SymOffset | |
SectionPair Sections | |
}; | |
SymOffset - Section offset of the relocation entry's symbol (used for GOT lookup). | |
unsigned | Size |
The size of this relocation (MachO specific). | |
bool | IsPCRel: 1 |
True if this is a PCRel relocation (MachO specific). | |
bool | IsTargetThumbFunc: 1 |
RelocationEntry - used to represent relocations internally in the dynamic linker.
Definition at line 117 of file RuntimeDyldImpl.h.
|
inline |
Definition at line 153 of file RuntimeDyldImpl.h.
|
inline |
Definition at line 157 of file RuntimeDyldImpl.h.
|
inline |
Definition at line 163 of file RuntimeDyldImpl.h.
|
inline |
Definition at line 168 of file RuntimeDyldImpl.h.
References llvm::RelocationEntry::SectionPair::SectionA, llvm::RelocationEntry::SectionPair::SectionB, and Sections.
|
inline |
Definition at line 178 of file RuntimeDyldImpl.h.
References llvm::RelocationEntry::SectionPair::SectionA, llvm::RelocationEntry::SectionPair::SectionB, and Sections.
union { ... } llvm::RelocationEntry::@482 |
SymOffset - Section offset of the relocation entry's symbol (used for GOT lookup).
int64_t llvm::RelocationEntry::Addend |
Addend - the relocation addend encoded in the instruction itself.
Also used to make a relocation section relative instead of symbol relative.
Definition at line 124 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldImpl::addRelocationForSymbol(), llvm::RuntimeDyldMachO::getRelocationValueRef(), llvm::RuntimeDyldMachOAArch64::processRelocationRef(), llvm::RuntimeDyldMachOARM::processRelocationRef(), llvm::RuntimeDyldMachOI386::processRelocationRef(), llvm::RuntimeDyldMachOX86_64::processRelocationRef(), llvm::RuntimeDyldELF::processRelocationRef(), llvm::RuntimeDyldELF::resolveRelocation(), llvm::RuntimeDyldCOFFAArch64::resolveRelocation(), llvm::RuntimeDyldCOFFI386::resolveRelocation(), llvm::RuntimeDyldCOFFThumb::resolveRelocation(), llvm::RuntimeDyldCOFFX86_64::resolveRelocation(), llvm::RuntimeDyldELFMips::resolveRelocation(), llvm::RuntimeDyldMachOAArch64::resolveRelocation(), llvm::RuntimeDyldMachOARM::resolveRelocation(), llvm::RuntimeDyldMachOI386::resolveRelocation(), and llvm::RuntimeDyldMachOX86_64::resolveRelocation().
bool llvm::RelocationEntry::IsPCRel |
True if this is a PCRel relocation (MachO specific).
Definition at line 148 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldMachOAArch64::processRelocationRef(), llvm::RuntimeDyldMachOARM::processRelocationRef(), llvm::RuntimeDyldMachOI386::processRelocationRef(), llvm::RuntimeDyldMachOX86_64::processRelocationRef(), llvm::RuntimeDyldMachOAArch64::resolveRelocation(), llvm::RuntimeDyldMachOARM::resolveRelocation(), llvm::RuntimeDyldMachOI386::resolveRelocation(), and llvm::RuntimeDyldMachOX86_64::resolveRelocation().
bool llvm::RelocationEntry::IsTargetThumbFunc |
Definition at line 151 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldMachOARM::processRelocationRef(), llvm::RuntimeDyldCOFFThumb::resolveRelocation(), and llvm::RuntimeDyldMachOARM::resolveRelocation().
uint64_t llvm::RelocationEntry::Offset |
Offset - offset into the section.
Definition at line 120 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldMachOAArch64::decodeAddend(), llvm::RuntimeDyldMachOARM::decodeAddend(), llvm::RuntimeDyldMachO::dumpRelocationToResolve(), llvm::RuntimeDyldMachO::memcpyAddend(), llvm::RuntimeDyldELF::resolveRelocation(), llvm::RuntimeDyldCOFFAArch64::resolveRelocation(), llvm::RuntimeDyldCOFFI386::resolveRelocation(), llvm::RuntimeDyldCOFFThumb::resolveRelocation(), llvm::RuntimeDyldCOFFX86_64::resolveRelocation(), llvm::RuntimeDyldELFMips::resolveRelocation(), llvm::RuntimeDyldMachOAArch64::resolveRelocation(), llvm::RuntimeDyldMachOARM::resolveRelocation(), llvm::RuntimeDyldMachOI386::resolveRelocation(), and llvm::RuntimeDyldMachOX86_64::resolveRelocation().
uint32_t llvm::RelocationEntry::RelType |
RelType - relocation type.
Definition at line 130 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldMachOAArch64::decodeAddend(), llvm::RuntimeDyldMachOARM::decodeAddend(), llvm::RuntimeDyldMachOAArch64::processRelocationRef(), llvm::RuntimeDyldMachOARM::processRelocationRef(), llvm::RuntimeDyldMachOX86_64::processRelocationRef(), llvm::RuntimeDyldELF::processRelocationRef(), llvm::RuntimeDyldELF::resolveRelocation(), llvm::RuntimeDyldCOFFAArch64::resolveRelocation(), llvm::RuntimeDyldCOFFI386::resolveRelocation(), llvm::RuntimeDyldCOFFThumb::resolveRelocation(), llvm::RuntimeDyldCOFFX86_64::resolveRelocation(), llvm::RuntimeDyldELFMips::resolveRelocation(), llvm::RuntimeDyldMachOAArch64::resolveRelocation(), llvm::RuntimeDyldMachOARM::resolveRelocation(), llvm::RuntimeDyldMachOI386::resolveRelocation(), and llvm::RuntimeDyldMachOX86_64::resolveRelocation().
unsigned llvm::RelocationEntry::SectionID |
SectionID - the section this relocation points to.
Definition at line 127 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldMachOAArch64::decodeAddend(), llvm::RuntimeDyldMachOARM::decodeAddend(), llvm::RuntimeDyldMachO::dumpRelocationToResolve(), llvm::RuntimeDyldMachO::memcpyAddend(), llvm::RuntimeDyldELF::processRelocationRef(), llvm::RuntimeDyldELF::resolveRelocation(), llvm::RuntimeDyldCOFFAArch64::resolveRelocation(), llvm::RuntimeDyldCOFFI386::resolveRelocation(), llvm::RuntimeDyldCOFFThumb::resolveRelocation(), llvm::RuntimeDyldCOFFX86_64::resolveRelocation(), llvm::RuntimeDyldELFMips::resolveRelocation(), llvm::RuntimeDyldMachOAArch64::resolveRelocation(), llvm::RuntimeDyldMachOARM::resolveRelocation(), llvm::RuntimeDyldMachOI386::resolveRelocation(), and llvm::RuntimeDyldMachOX86_64::resolveRelocation().
SectionPair llvm::RelocationEntry::Sections |
Definition at line 141 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldCOFF::getDLLImportOffset(), RelocationEntry(), llvm::RuntimeDyldCOFFI386::resolveRelocation(), llvm::RuntimeDyldCOFFThumb::resolveRelocation(), llvm::RuntimeDyldMachOAArch64::resolveRelocation(), llvm::RuntimeDyldMachOARM::resolveRelocation(), llvm::RuntimeDyldMachOI386::resolveRelocation(), and llvm::RuntimeDyldMachOX86_64::resolveRelocation().
unsigned llvm::RelocationEntry::Size |
The size of this relocation (MachO specific).
Definition at line 145 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldMachOAArch64::decodeAddend(), llvm::RuntimeDyldMachO::memcpyAddend(), llvm::RuntimeDyldMachOAArch64::processRelocationRef(), llvm::RuntimeDyldMachOI386::processRelocationRef(), llvm::RuntimeDyldMachOX86_64::processRelocationRef(), llvm::RuntimeDyldMachOAArch64::resolveRelocation(), llvm::RuntimeDyldMachOARM::resolveRelocation(), llvm::RuntimeDyldMachOI386::resolveRelocation(), and llvm::RuntimeDyldMachOX86_64::resolveRelocation().
uint64_t llvm::RelocationEntry::SymOffset |
Definition at line 140 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldELF::processRelocationRef(), llvm::RuntimeDyldELF::resolveRelocation(), and llvm::RuntimeDyldELFMips::resolveRelocation().