LLVM  16.0.0git
Public Member Functions | List of all members
llvm::object::ChainedFixupTarget Struct Reference

ChainedFixupTarget holds all the information about an external symbol necessary to bind this binary to that symbol. More...

#include "llvm/Object/MachO.h"

Public Member Functions

 ChainedFixupTarget (int LibOrdinal, StringRef Symbol, uint64_t Addend, bool WeakImport)
 
int libOrdinal ()
 
StringRef symbolName ()
 
uint64_t addend ()
 
bool weakImport ()
 
bool weakBind ()
 

Detailed Description

ChainedFixupTarget holds all the information about an external symbol necessary to bind this binary to that symbol.

These values are referenced indirectly by chained fixup binds. This structure captures values from all import and symbol formats.

Be aware there are two notions of weak here: WeakImport == true The associated bind may be set to 0 if this symbol is missing from its parent library. This is called a "weak import." LibOrdinal == BIND_SPECIAL_DYLIB_WEAK_LOOKUP This symbol may be coalesced with other libraries vending the same symbol. E.g., C++'s "operator new". This is called a "weak bind."

Definition at line 275 of file MachO.h.

Constructor & Destructor Documentation

◆ ChainedFixupTarget()

llvm::object::ChainedFixupTarget::ChainedFixupTarget ( int  LibOrdinal,
StringRef  Symbol,
uint64_t  Addend,
bool  WeakImport 
)
inline

Definition at line 277 of file MachO.h.

Member Function Documentation

◆ addend()

uint64_t llvm::object::ChainedFixupTarget::addend ( )
inline

Definition at line 284 of file MachO.h.

◆ libOrdinal()

int llvm::object::ChainedFixupTarget::libOrdinal ( )
inline

Definition at line 282 of file MachO.h.

◆ symbolName()

StringRef llvm::object::ChainedFixupTarget::symbolName ( )
inline

Definition at line 283 of file MachO.h.

◆ weakBind()

bool llvm::object::ChainedFixupTarget::weakBind ( )
inline

Definition at line 286 of file MachO.h.

References llvm::MachO::BIND_SPECIAL_DYLIB_WEAK_LOOKUP.

◆ weakImport()

bool llvm::object::ChainedFixupTarget::weakImport ( )
inline

Definition at line 285 of file MachO.h.


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