LIEF: Library to Instrument Executable Formats Version 0.17.0
|
Class which represents an entry defined in the DT_VERSYM
dynamic entry.
More...
#include <SymbolVersion.hpp>
Public Member Functions | |
SymbolVersion (uint16_t value) | |
SymbolVersion ()=default | |
~SymbolVersion () override=default | |
SymbolVersion & | operator= (const SymbolVersion &)=default |
SymbolVersion (const SymbolVersion &)=default | |
uint16_t | value () const |
Value associated with the symbol. | |
bool | has_auxiliary_version () const |
Whether the current SymbolVersion has an auxiliary one. | |
SymbolVersionAux * | symbol_version_auxiliary () |
SymbolVersionAux associated with the current Version if any, or a nullptr. | |
const SymbolVersionAux * | symbol_version_auxiliary () const |
void | symbol_version_auxiliary (SymbolVersionAuxRequirement &svauxr) |
Set the version's auxiliary requirement The given SymbolVersionAuxRequirement must be an existing reference in the ELF::Binary. | |
void | value (uint16_t v) |
void | accept (Visitor &visitor) const override |
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 SymbolVersion | local () |
Generate a local SymbolVersion. | |
static SymbolVersion | global () |
Generate a global SymbolVersion. | |
Additional Inherited Members | |
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>>> |
Class which represents an entry defined in the DT_VERSYM
dynamic entry.
|
inline |
|
default |
|
overridedefault |
|
default |
|
overridevirtual |
Implements LIEF::Object.
|
inlinestatic |
Generate a global SymbolVersion.
|
inline |
Whether the current SymbolVersion has an auxiliary one.
|
inlinestatic |
Generate a local SymbolVersion.
|
default |
|
inline |
SymbolVersionAux associated with the current Version if any, or a nullptr.
|
inline |
void LIEF::ELF::SymbolVersion::symbol_version_auxiliary | ( | SymbolVersionAuxRequirement & | svauxr | ) |
Set the version's auxiliary requirement The given SymbolVersionAuxRequirement must be an existing reference in the ELF::Binary.
On can add a new SymbolVersionAuxRequirement by using SymbolVersionRequirement::add_aux_requirement
|
inline |
Value associated with the symbol.
If the given SymbolVersion hasn't Auxiliary version:
0
means Local1
means Global
|
inline |