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"
25#include "LIEF/ELF/enums.hpp"
30class SymbolVersionAux;
42 using version_aux_t = std::vector<std::unique_ptr<SymbolVersionAux>>;
71 uint16_t
ndx()
const {
82 return symbol_version_aux_;
85 it_const_version_aux symbols_aux()
const {
86 return symbol_version_aux_;
89 void version(uint16_t version) {
93 void flags(uint16_t flags) {
97 void hash(uint32_t hash) {
101 void accept(Visitor& visitor)
const override;
103 LIEF_API
friend std::ostream& operator<<(std::ostream& os,
const SymbolVersionDefinition& sym);
106 uint16_t version_ = 1;
110 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:39
it_version_aux symbols_aux()
SymbolVersionAux entries.
Definition SymbolVersionDefinition.hpp:81
uint32_t hash() const
Hash value of the symbol's name (using ELF hash function)
Definition SymbolVersionDefinition.hpp:76
uint16_t ndx() const
Version index.
Definition SymbolVersionDefinition.hpp:71
uint16_t version() const
Version revision.
Definition SymbolVersionDefinition.hpp:59
uint16_t flags() const
Version information.
Definition SymbolVersionDefinition.hpp:64
Iterator which returns reference on container's values.
Definition iterators.hpp:48
LIEF namespace.
Definition Abstract/Binary.hpp:32