LLVM 22.0.0git
llvm::RelocationEntry Class Reference

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

Detailed Description

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

Definition at line 118 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 154 of file RuntimeDyldImpl.h.

References Addend, IsPCRel, IsTargetThumbFunc, Offset, RelType, SectionID, Size, and SymOffset.

◆ RelocationEntry() [2/5]

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

Definition at line 158 of file RuntimeDyldImpl.h.

References Addend, IsPCRel, IsTargetThumbFunc, Offset, RelType, SectionID, Size, and SymOffset.

◆ 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 164 of file RuntimeDyldImpl.h.

References Addend, IsPCRel, IsTargetThumbFunc, Offset, RelType, SectionID, Size, and SymOffset.

◆ 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 169 of file RuntimeDyldImpl.h.

References Addend, IsPCRel, IsTargetThumbFunc, Offset, RelType, SectionID, Sections, and Size.

◆ 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 179 of file RuntimeDyldImpl.h.

References Addend, IsPCRel, IsTargetThumbFunc, Offset, RelType, SectionID, Sections, and Size.

Member Data Documentation

◆ [union]

union { ... } llvm::RelocationEntry

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

◆ Addend

◆ IsPCRel

◆ IsTargetThumbFunc

◆ Offset

◆ RelType

◆ SectionID

◆ Sections

◆ Size

◆ SymOffset


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