16#ifndef LIEF_ELF_SYMBOL_VERSION_REQUIREMENTS_H
17#define LIEF_ELF_SYMBOL_VERSION_REQUIREMENTS_H
31class SymbolVersionAuxRequirement;
66 return aux_requirements_.size();
71 return aux_requirements_;
75 return aux_requirements_;
79 const std::string&
name()
const {
87 void name(
const std::string& name) {
103 aux_requirement_t aux_requirements_;
104 uint16_t version_ = 0;
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 entry in the DT_VERNEED or .gnu.version_r table.
Definition SymbolVersionRequirement.hpp:39
void accept(Visitor &visitor) const override
size_t cnt() const
Number of auxiliary entries.
Definition SymbolVersionRequirement.hpp:65
void swap(SymbolVersionRequirement &other)
void version(uint16_t version)
Definition SymbolVersionRequirement.hpp:83
it_const_aux_requirement auxiliary_symbols() const
Definition SymbolVersionRequirement.hpp:74
SymbolVersionRequirement(const details::Elf64_Verneed &header)
const std::string & name() const
Return the library name associated with this requirement (e.g. libc.so.6)
Definition SymbolVersionRequirement.hpp:79
uint16_t version() const
Version revision.
Definition SymbolVersionRequirement.hpp:60
SymbolVersionRequirement & operator=(SymbolVersionRequirement other)
it_aux_requirement auxiliary_symbols()
Auxiliary entries as an iterator over SymbolVersionAuxRequirement.
Definition SymbolVersionRequirement.hpp:70
friend std::ostream & operator<<(std::ostream &os, const SymbolVersionRequirement &symr)
Definition SymbolVersionRequirement.hpp:97
SymbolVersionRequirement(const SymbolVersionRequirement &other)
std::vector< std::unique_ptr< SymbolVersionAuxRequirement > > aux_requirement_t
Definition SymbolVersionRequirement.hpp:43
~SymbolVersionRequirement() override=default
void name(const std::string &name)
Definition SymbolVersionRequirement.hpp:87
SymbolVersionAuxRequirement & add_aux_requirement(const SymbolVersionAuxRequirement &aux_requirement)
Add a version auxiliary requirement to the existing list.
SymbolVersionRequirement()=default
SymbolVersionRequirement(const details::Elf32_Verneed &header)
Definition Visitor.hpp:224
Iterator which returns reference on container's values.
Definition iterators.hpp:48
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41