LLVM
8.0.1
|
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 | |
unsigned | SectionID |
SectionID - the section this relocation points to. More... | |
uint64_t | Offset |
Offset - offset into the section. More... | |
uint32_t | RelType |
RelType - relocation type. More... | |
int64_t | Addend |
Addend - the relocation addend encoded in the instruction itself. More... | |
union { | |
uint64_t SymOffset | |
SectionPair Sections | |
}; | |
SymOffset - Section offset of the relocation entry's symbol (used for GOT lookup). More... | |
bool | IsPCRel |
True if this is a PCRel relocation (MachO specific). More... | |
unsigned | Size |
The size of this relocation (MachO specific). More... | |
bool | IsTargetThumbFunc = false |
RelocationEntry - used to represent relocations internally in the dynamic linker.
Definition at line 119 of file RuntimeDyldImpl.h.
|
inline |
Definition at line 155 of file RuntimeDyldImpl.h.
|
inline |
Definition at line 159 of file RuntimeDyldImpl.h.
|
inline |
Definition at line 165 of file RuntimeDyldImpl.h.
|
inline |
Definition at line 170 of file RuntimeDyldImpl.h.
|
inline |
Definition at line 180 of file RuntimeDyldImpl.h.
union { ... } |
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 132 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldImpl::addRelocationForSymbol(), llvm::RuntimeDyldMachO::dumpRelocationToResolve(), llvm::RuntimeDyldMachOX86_64::finalizeSection(), llvm::RuntimeDyldMachO::getRelocationValueRef(), llvm::RuntimeDyldMachOI386::processRelocationRef(), llvm::RuntimeDyldMachOARM::processRelocationRef(), llvm::RuntimeDyldELF::processRelocationRef(), llvm::RuntimeDyldMachOAArch64::processRelocationRef(), llvm::RuntimeDyldELFMips::resolveRelocation(), llvm::RuntimeDyldMachOX86_64::resolveRelocation(), llvm::RuntimeDyldCOFFX86_64::resolveRelocation(), llvm::RuntimeDyldMachOI386::resolveRelocation(), llvm::RuntimeDyldCOFFI386::resolveRelocation(), llvm::RuntimeDyldCOFFThumb::resolveRelocation(), llvm::RuntimeDyldELF::resolveRelocation(), llvm::RuntimeDyldMachOARM::resolveRelocation(), and llvm::RuntimeDyldMachOAArch64::resolveRelocation().
bool llvm::RelocationEntry::IsPCRel |
True if this is a PCRel relocation (MachO specific).
Definition at line 147 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldMachO::dumpRelocationToResolve(), llvm::RuntimeDyldMachOX86_64::finalizeSection(), llvm::RuntimeDyldMachOARM::finalizeSection(), llvm::RuntimeDyldMachOAArch64::finalizeSection(), llvm::RuntimeDyldMachOI386::processRelocationRef(), llvm::RuntimeDyldMachOARM::processRelocationRef(), llvm::RuntimeDyldMachOAArch64::processRelocationRef(), llvm::RuntimeDyldMachOX86_64::resolveRelocation(), llvm::RuntimeDyldMachOI386::resolveRelocation(), llvm::RuntimeDyldMachOARM::resolveRelocation(), and llvm::RuntimeDyldMachOAArch64::resolveRelocation().
Definition at line 153 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldMachOARM::finalizeSection(), llvm::RuntimeDyldMachOARM::processRelocationRef(), llvm::RuntimeDyldMachO::processScatteredVANILLA(), llvm::RuntimeDyldCOFFThumb::resolveRelocation(), and llvm::RuntimeDyldMachOARM::resolveRelocation().
uint64_t llvm::RelocationEntry::Offset |
Offset - offset into the section.
Definition at line 125 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldMachOAArch64::decodeAddend(), llvm::RuntimeDyldMachOARM::decodeAddend(), llvm::RuntimeDyldMachO::dumpRelocationToResolve(), llvm::RuntimeDyldMachOX86_64::finalizeSection(), llvm::RuntimeDyldMachOARM::finalizeSection(), llvm::RuntimeDyldMachOAArch64::finalizeSection(), llvm::RuntimeDyldMachO::memcpyAddend(), llvm::RuntimeDyldELFMips::resolveRelocation(), llvm::RuntimeDyldMachOX86_64::resolveRelocation(), llvm::RuntimeDyldCOFFX86_64::resolveRelocation(), llvm::RuntimeDyldMachOI386::resolveRelocation(), llvm::RuntimeDyldCOFFI386::resolveRelocation(), llvm::RuntimeDyldCOFFThumb::resolveRelocation(), llvm::RuntimeDyldELF::resolveRelocation(), llvm::RuntimeDyldMachOARM::resolveRelocation(), and llvm::RuntimeDyldMachOAArch64::resolveRelocation().
uint32_t llvm::RelocationEntry::RelType |
RelType - relocation type.
Definition at line 128 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldMachOAArch64::decodeAddend(), llvm::RuntimeDyldMachOARM::decodeAddend(), llvm::RuntimeDyldMachO::dumpRelocationToResolve(), llvm::RuntimeDyldMachOARM::finalizeSection(), llvm::RuntimeDyldMachOAArch64::finalizeSection(), llvm::RuntimeDyldMachOARM::processRelocationRef(), llvm::RuntimeDyldELF::processRelocationRef(), llvm::RuntimeDyldMachOAArch64::processRelocationRef(), llvm::RuntimeDyldELFMips::resolveRelocation(), llvm::RuntimeDyldMachOX86_64::resolveRelocation(), llvm::RuntimeDyldCOFFX86_64::resolveRelocation(), llvm::RuntimeDyldMachOI386::resolveRelocation(), llvm::RuntimeDyldCOFFI386::resolveRelocation(), llvm::RuntimeDyldCOFFThumb::resolveRelocation(), llvm::RuntimeDyldELF::resolveRelocation(), llvm::RuntimeDyldMachOARM::resolveRelocation(), and llvm::RuntimeDyldMachOAArch64::resolveRelocation().
unsigned llvm::RelocationEntry::SectionID |
SectionID - the section this relocation points to.
Definition at line 122 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldMachOAArch64::decodeAddend(), llvm::RuntimeDyldMachOARM::decodeAddend(), llvm::RuntimeDyldMachO::dumpRelocationToResolve(), llvm::RuntimeDyldMachOX86_64::finalizeSection(), llvm::RuntimeDyldMachOARM::finalizeSection(), llvm::RuntimeDyldMachOAArch64::finalizeSection(), llvm::RuntimeDyldMachO::memcpyAddend(), llvm::RuntimeDyldELF::processRelocationRef(), llvm::RuntimeDyldELFMips::resolveRelocation(), llvm::RuntimeDyldMachOX86_64::resolveRelocation(), llvm::RuntimeDyldCOFFX86_64::resolveRelocation(), llvm::RuntimeDyldMachOI386::resolveRelocation(), llvm::RuntimeDyldCOFFI386::resolveRelocation(), llvm::RuntimeDyldCOFFThumb::resolveRelocation(), llvm::RuntimeDyldELF::resolveRelocation(), llvm::RuntimeDyldMachOARM::resolveRelocation(), llvm::RuntimeDyldMachOAArch64::resolveRelocation(), and llvm::RuntimeDyldImpl::resolveRelocationList().
SectionPair llvm::RelocationEntry::Sections |
Definition at line 143 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldMachOX86_64::resolveRelocation(), llvm::RuntimeDyldMachOI386::resolveRelocation(), llvm::RuntimeDyldCOFFI386::resolveRelocation(), llvm::RuntimeDyldCOFFThumb::resolveRelocation(), llvm::RuntimeDyldMachOARM::resolveRelocation(), and llvm::RuntimeDyldMachOAArch64::resolveRelocation().
unsigned llvm::RelocationEntry::Size |
The size of this relocation (MachO specific).
Definition at line 150 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldMachOAArch64::decodeAddend(), llvm::RuntimeDyldMachO::dumpRelocationToResolve(), llvm::RuntimeDyldMachOX86_64::finalizeSection(), llvm::RuntimeDyldMachOARM::finalizeSection(), llvm::RuntimeDyldMachOAArch64::finalizeSection(), llvm::RuntimeDyldMachO::memcpyAddend(), llvm::RuntimeDyldMachOI386::processRelocationRef(), llvm::RuntimeDyldMachOAArch64::processRelocationRef(), llvm::RuntimeDyldMachOX86_64::resolveRelocation(), llvm::RuntimeDyldMachOI386::resolveRelocation(), llvm::RuntimeDyldMachOARM::resolveRelocation(), and llvm::RuntimeDyldMachOAArch64::resolveRelocation().
uint64_t llvm::RelocationEntry::SymOffset |
Definition at line 142 of file RuntimeDyldImpl.h.
Referenced by llvm::RuntimeDyldELF::processRelocationRef(), llvm::RuntimeDyldELFMips::resolveRelocation(), and llvm::RuntimeDyldELF::resolveRelocation().