16#ifndef LIEF_ELF_SYMBOL_VERSION_DEFINITION_H
17#define LIEF_ELF_SYMBOL_VERSION_DEFINITION_H
21#include "LIEF/Object.hpp"
22#include "LIEF/visibility.h"
23#include "LIEF/iterators.hpp"
28class SymbolVersionAux;
40 using version_aux_t = std::vector<std::unique_ptr<SymbolVersionAux>>;
69 uint16_t
ndx()
const {
80 return symbol_version_aux_;
83 it_const_version_aux symbols_aux()
const {
84 return symbol_version_aux_;
87 void version(uint16_t version) {
91 void flags(uint16_t flags) {
95 void hash(uint32_t hash) {
99 void accept(Visitor& visitor)
const override;
101 LIEF_API
friend std::ostream& operator<<(std::ostream& os,
const SymbolVersionDefinition& sym);
104 uint16_t version_ = 1;
108 version_aux_t symbol_version_aux_;
Class which parses and transforms an ELF file into a ELF::Binary object.
Definition ELF/Parser.hpp:45
Class which represents an entry defined in DT_VERDEF or .gnu.version_d
Definition SymbolVersionDefinition.hpp:37
it_version_aux symbols_aux()
SymbolVersionAux entries.
Definition SymbolVersionDefinition.hpp:79
uint32_t hash() const
Hash value of the symbol's name (using ELF hash function)
Definition SymbolVersionDefinition.hpp:74
uint16_t ndx() const
Version index.
Definition SymbolVersionDefinition.hpp:69
uint16_t version() const
Version revision.
Definition SymbolVersionDefinition.hpp:57
uint16_t flags() const
Version information.
Definition SymbolVersionDefinition.hpp:62
Iterator which returns reference on container's values.
Definition iterators.hpp:48
LIEF namespace.
Definition Abstract/Binary.hpp:31