LLVM  8.0.1
Classes | Public Member Functions | Public Attributes | List of all members
llvm::RelocationEntry Class Reference

RelocationEntry - used to represent relocations internally in the dynamic linker. More...

#include "ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h"

Collaboration diagram for llvm::RelocationEntry:
Collaboration graph
[legend]

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
 

Detailed Description

RelocationEntry - used to represent relocations internally in the dynamic linker.

Definition at line 119 of file RuntimeDyldImpl.h.

Constructor & Destructor Documentation

◆ RelocationEntry() [1/5]

llvm::RelocationEntry::RelocationEntry ( unsigned  id,
uint64_t  offset,
uint32_t  type,
int64_t  addend 
)
inline

Definition at line 155 of file RuntimeDyldImpl.h.

◆ RelocationEntry() [2/5]

llvm::RelocationEntry::RelocationEntry ( unsigned  id,
uint64_t  offset,
uint32_t  type,
int64_t  addend,
uint64_t  symoffset 
)
inline

Definition at line 159 of file RuntimeDyldImpl.h.

◆ RelocationEntry() [3/5]

llvm::RelocationEntry::RelocationEntry ( unsigned  id,
uint64_t  offset,
uint32_t  type,
int64_t  addend,
bool  IsPCRel,
unsigned  Size 
)
inline

Definition at line 165 of file RuntimeDyldImpl.h.

◆ RelocationEntry() [4/5]

llvm::RelocationEntry::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 
)
inline

Definition at line 170 of file RuntimeDyldImpl.h.

◆ RelocationEntry() [5/5]

llvm::RelocationEntry::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 
)
inline

Definition at line 180 of file RuntimeDyldImpl.h.

Member Data Documentation

◆ @360

union { ... }

SymOffset - Section offset of the relocation entry's symbol (used for GOT lookup).

◆ Addend

int64_t llvm::RelocationEntry::Addend

◆ IsPCRel

bool llvm::RelocationEntry::IsPCRel

◆ IsTargetThumbFunc

bool llvm::RelocationEntry::IsTargetThumbFunc = false

◆ Offset

uint64_t llvm::RelocationEntry::Offset

◆ RelType

uint32_t llvm::RelocationEntry::RelType

◆ SectionID

unsigned llvm::RelocationEntry::SectionID

◆ Sections

SectionPair llvm::RelocationEntry::Sections

◆ Size

unsigned llvm::RelocationEntry::Size

◆ SymOffset

uint64_t llvm::RelocationEntry::SymOffset

The documentation for this class was generated from the following file: