LIEF: Library to Instrument Executable Formats Version 0.15.1
|
This class represents a symbol binding operation associated with the LC_DYLD_CHAINED_FIXUPS command. More...
#include <ChainedBindingInfo.hpp>
Public Member Functions | |
ChainedBindingInfo ()=delete | |
ChainedBindingInfo (DYLD_CHAINED_FORMAT fmt, bool is_weak) | |
ChainedBindingInfo & | operator= (ChainedBindingInfo other) |
ChainedBindingInfo (const ChainedBindingInfo &other) | |
ChainedBindingInfo (ChainedBindingInfo &&) noexcept | |
void | swap (ChainedBindingInfo &other) noexcept |
DYLD_CHAINED_FORMAT | format () const |
Format of the imports. | |
DYLD_CHAINED_PTR_FORMAT | ptr_format () const |
Format of the pointer. | |
uint32_t | offset () const |
Original offset in the chain of this binding. | |
void | offset (uint32_t offset) |
uint64_t | address () const override |
Address of the binding. | |
void | address (uint64_t address) override |
uint64_t | sign_extended_addend () const |
BindingInfo::TYPES | type () const override |
The type of the binding. This type provides the origin of the binding (LC_DYLD_INFO or LC_DYLD_CHAINED_FIXUPS) | |
~ChainedBindingInfo () override | |
void | accept (Visitor &visitor) const override |
Public Member Functions inherited from LIEF::MachO::BindingInfo | |
BindingInfo ()=default | |
BindingInfo (const BindingInfo &other) | |
void | swap (BindingInfo &other) noexcept |
bool | has_segment () const |
Check if a MachO::SegmentCommand is associated with this binding. | |
const SegmentCommand * | segment () const |
The MachO::SegmentCommand associated with the BindingInfo or a nullptr of it is not bind to a SegmentCommand. | |
SegmentCommand * | segment () |
bool | has_library () const |
Check if a MachO::DylibCommand is tied with the BindingInfo. | |
const DylibCommand * | library () const |
MachO::DylibCommand associated with the BindingInfo or a nullptr if not present. | |
DylibCommand * | library () |
bool | has_symbol () const |
Check if a MachO::Symbol is associated with the BindingInfo. | |
const Symbol * | symbol () const |
MachO::Symbol associated with the BindingInfo or a nullptr if not present. | |
Symbol * | symbol () |
int32_t | library_ordinal () const |
void | library_ordinal (int32_t ordinal) |
int64_t | addend () const |
Value added to the segment's virtual address when bound. | |
void | addend (int64_t addend) |
bool | is_weak_import () const |
void | set_weak_import (bool val=true) |
~BindingInfo () override=default | |
Public Member Functions inherited from LIEF::Object | |
Object () | |
Object (const Object &other) | |
Object & | operator= (const Object &other) |
template<class T > | |
output_t< T > | as () |
template<class T > | |
output_const_t< T > | as () const |
virtual bool | operator== (const Object &other) const |
virtual bool | operator!= (const Object &other) const |
virtual | ~Object () |
Static Public Member Functions | |
static bool | classof (const BindingInfo *info) |
Additional Inherited Members | |
Public Types inherited from LIEF::MachO::BindingInfo | |
enum class | TYPES { UNKNOWN = 0 , DYLD_INFO , CHAINED , CHAINED_LIST } |
Public Types inherited from LIEF::Object | |
template<class T > | |
using | output_t = add_pointer_t<decay_t<T>> |
template<class T > | |
using | output_const_t = add_pointer_t<add_const_t<decay_t<T>>> |
This class represents a symbol binding operation associated with the LC_DYLD_CHAINED_FIXUPS command.
This class does not represent a structure that exists in the Mach-O format specifications but it provides a view on an entry.
|
delete |
|
explicit |
LIEF::MachO::ChainedBindingInfo::ChainedBindingInfo | ( | const ChainedBindingInfo & | other | ) |
|
noexcept |
|
inlineoverride |
|
overridevirtual |
Reimplemented from LIEF::MachO::BindingInfo.
|
inlineoverridevirtual |
Address of the binding.
Reimplemented from LIEF::MachO::BindingInfo.
|
inlineoverridevirtual |
Reimplemented from LIEF::MachO::BindingInfo.
|
inlinestatic |
References LIEF::MachO::BindingInfo::type().
|
inline |
Format of the imports.
|
inline |
Original offset in the chain of this binding.
|
inline |
ChainedBindingInfo & LIEF::MachO::ChainedBindingInfo::operator= | ( | ChainedBindingInfo | other | ) |
|
inline |
Format of the pointer.
uint64_t LIEF::MachO::ChainedBindingInfo::sign_extended_addend | ( | ) | const |
|
noexcept |
|
inlineoverridevirtual |
The type of the binding. This type provides the origin of the binding (LC_DYLD_INFO or LC_DYLD_CHAINED_FIXUPS)
Implements LIEF::MachO::BindingInfo.
details::dyld_chained_ptr_arm64e_auth_bind24* LIEF::MachO::ChainedBindingInfo::arm64_auth_bind24_ |
details::dyld_chained_ptr_arm64e_auth_bind* LIEF::MachO::ChainedBindingInfo::arm64_auth_bind_ |
details::dyld_chained_ptr_arm64e_bind24* LIEF::MachO::ChainedBindingInfo::arm64_bind24_ |
details::dyld_chained_ptr_arm64e_bind* LIEF::MachO::ChainedBindingInfo::arm64_bind_ = nullptr |
details::dyld_chained_ptr_32_bind* LIEF::MachO::ChainedBindingInfo::p32_bind_ |
details::dyld_chained_ptr_64_bind* LIEF::MachO::ChainedBindingInfo::p64_bind_ |