LIEF: Library to Instrument Executable Formats Version 0.17.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_ELF_SYMBOL_VERSION_REQUIREMENTS_H
17#define LIEF_ELF_SYMBOL_VERSION_REQUIREMENTS_H
43 using aux_requirement_t = std::vector<std::unique_ptr<SymbolVersionAuxRequirement>>;
44 using it_aux_requirement = ref_iterator<aux_requirement_t&, SymbolVersionAuxRequirement*>;
45 using it_const_aux_requirement = const_ref_iterator<const aux_requirement_t&, const SymbolVersionAuxRequirement*>;
52 SymbolVersionRequirement&
operator=(SymbolVersionRequirement other);
54 void swap(SymbolVersionRequirement& other);
66 return aux_requirements_.size();
71 return aux_requirements_;
75 return aux_requirements_;
77 const std::string&
name()
const {
87 void name(
const std::string& name) {
90 SymbolVersionAuxRequirement&
add_aux_requirement(
const SymbolVersionAuxRequirement& aux_requirement);
94 void accept(Visitor& visitor)
const override;
97 std::ostream&
operator<<(std::ostream& os,
const SymbolVersionRequirement& symr) {
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)
~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 DynamicEntry.hpp:29
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