LIEF: Library to Instrument Executable Formats Version 0.16.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_ELF_SYMBOL_VERSION_H
17#define LIEF_ELF_SYMBOL_VERSION_H
40 static SymbolVersion
local() {
43 return SymbolVersion(0);
45 static SymbolVersion
global() {
48 return SymbolVersion(1);
53 SymbolVersion&
operator=(
const SymbolVersion&) =
default;
55 uint16_t
value()
const {
68 return symbol_version_auxiliary() !=
nullptr;
93 void accept(Visitor& visitor)
const override;
99 SymbolVersionAux* symbol_aux_ =
nullptr;
Class which parses and transforms an ELF file into a ELF::Binary object.
Definition ELF/Parser.hpp:45
Definition SymbolVersionAuxRequirement.hpp:35
Class which represents an Auxiliary Symbol version.
Definition SymbolVersionAux.hpp:30
Class which represents an entry defined in the DT_VERSYM dynamic entry.
Definition SymbolVersion.hpp:32
const SymbolVersionAux * symbol_version_auxiliary() const
Definition SymbolVersion.hpp:77
bool has_auxiliary_version() const
Whether the current SymbolVersion has an auxiliary one.
Definition SymbolVersion.hpp:67
SymbolVersion & operator=(const SymbolVersion &)=default
static SymbolVersion local()
Generate a local SymbolVersion.
Definition SymbolVersion.hpp:42
~SymbolVersion() override=default
friend std::ostream & operator<<(std::ostream &os, const SymbolVersion &symv)
void accept(Visitor &visitor) const override
SymbolVersion(const SymbolVersion &)=default
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:47
SymbolVersion(uint16_t value)
Definition SymbolVersion.hpp:36
void value(uint16_t v)
Definition SymbolVersion.hpp:89
SymbolVersionAux * symbol_version_auxiliary()
SymbolVersionAux associated with the current Version if any, or a nullptr.
Definition SymbolVersion.hpp:73
uint16_t value() const
Value associated with the symbol.
Definition SymbolVersion.hpp:62
Namespace related to the LIEF's ELF module.
Definition Abstract/Header.hpp:28
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41