16#ifndef LIEF_ELF_SYMBOL_VERSION_H
17#define LIEF_ELF_SYMBOL_VERSION_H
138 symbol_aux_ =
nullptr;
Class which parses and transforms an ELF file into a ELF::Binary object.
Definition ELF/Parser.hpp:47
Definition SymbolVersionAuxRequirement.hpp:33
Class which represents an Auxiliary Symbol version.
Definition SymbolVersionAux.hpp:32
static constexpr uint16_t LOCAL_VERSION
Definition SymbolVersion.hpp:37
static constexpr uint16_t GLOBAL_VERSION
Definition SymbolVersion.hpp:38
const SymbolVersionAux * symbol_version_auxiliary() const
Definition SymbolVersion.hpp:122
bool has_auxiliary_version() const
Whether the current SymbolVersion has an auxiliary one.
Definition SymbolVersion.hpp:112
SymbolVersion & operator=(const SymbolVersion &)=default
static constexpr uint16_t VERSION_MASK
Mask for the version index (VERSYM_VERSION in the GNU implementation).
Definition SymbolVersion.hpp:44
void drop_version(uint16_t value)
Drop the versioning requirement and replace the value (local/global).
Definition SymbolVersion.hpp:135
static SymbolVersion local()
Generate a local SymbolVersion.
Definition SymbolVersion.hpp:51
uint16_t version() const
Version index without the GNU VERSYM_HIDDEN bit.
Definition SymbolVersion.hpp:76
static constexpr uint16_t HIDDEN_MASK
Mask for the GNU VERSYM_HIDDEN bit.
Definition SymbolVersion.hpp:41
bool is_hidden() const
Whether the GNU VERSYM_HIDDEN bit is set.
Definition SymbolVersion.hpp:97
bool is_global() const
Whether this symbol version is global (VER_NDX_GLOBAL).
Definition SymbolVersion.hpp:89
~SymbolVersion() override=default
bool is_local() const
Whether this symbol version is local (VER_NDX_LOCAL).
Definition SymbolVersion.hpp:81
friend std::ostream & operator<<(std::ostream &os, const SymbolVersion &symv)
void accept(Visitor &visitor) const override
SymbolVersion(const SymbolVersion &)=default
friend class Parser
Definition SymbolVersion.hpp:34
void symbol_version_auxiliary(SymbolVersionAuxRequirement &svauxr)
Set the version's auxiliary requirement The given SymbolVersionAuxRequirement must be an existing ref...
static SymbolVersion global()
Generate a global SymbolVersion.
Definition SymbolVersion.hpp:56
void as_local()
Redefine this version as local by dropping its auxiliary version.
Definition SymbolVersion.hpp:151
void as_global()
Redefine this version as global by dropping its auxiliary version.
Definition SymbolVersion.hpp:144
SymbolVersion(uint16_t value)
Definition SymbolVersion.hpp:46
void value(uint16_t v)
Definition SymbolVersion.hpp:155
void set_hidden(bool value=true)
Set or clear the GNU VERSYM_HIDDEN bit while preserving the version index.
Definition SymbolVersion.hpp:103
SymbolVersionAux * symbol_version_auxiliary()
SymbolVersionAux associated with the current Version if any, or a nullptr.
Definition SymbolVersion.hpp:118
uint16_t value() const
Value associated with the symbol.
Definition SymbolVersion.hpp:71
Definition Visitor.hpp:212
#define LIEF_LIFETIMEBOUND
Definition compiler_attributes.hpp:72
Namespace related to the LIEF's ELF module.
Definition Abstract/Header.hpp:28
#define LIEF_API
Definition visibility.h:45