Go to the documentation of this file.
16#ifndef LIEF_ELF_DYNAMIC_ENTRY_LIBRARY_H
17#define LIEF_ELF_DYNAMIC_ENTRY_LIBRARY_H
32 using DynamicEntry::DynamicEntry;
35 DynamicEntry::DynamicEntry{DynamicEntry::TAG::NEEDED, 0}
39 DynamicEntry::DynamicEntry{DynamicEntry::TAG::NEEDED, 0},
40 libname_(std::move(name))
43 DynamicEntryLibrary&
operator=(
const DynamicEntryLibrary&) =
default;
46 std::unique_ptr<DynamicEntry>
clone()
const override {
47 return std::unique_ptr<DynamicEntryLibrary>(
new DynamicEntryLibrary{*
this});
49 const std::string&
name()
const {
55 void name(std::string name) {
56 libname_ = std::move(name);
59 static bool classof(
const DynamicEntry* entry) {
60 return entry->
tag() == DynamicEntry::TAG::NEEDED;
63 void accept(Visitor& visitor)
const override;
65 std::ostream&
print(std::ostream& os)
const override;
Class which represents a DT_NEEDED entry in the dynamic table.
Definition DynamicEntryLibrary.hpp:29
std::unique_ptr< DynamicEntry > clone() const override
Definition DynamicEntryLibrary.hpp:46
DynamicEntryLibrary(const DynamicEntryLibrary &)=default
DynamicEntryLibrary & operator=(const DynamicEntryLibrary &)=default
void name(std::string name)
Definition DynamicEntryLibrary.hpp:55
const std::string & name() const
Return the library associated with this entry (e.g. libc.so.6)
Definition DynamicEntryLibrary.hpp:51
static bool classof(const DynamicEntry *entry)
Definition DynamicEntryLibrary.hpp:59
std::ostream & print(std::ostream &os) const override
void accept(Visitor &visitor) const override
DynamicEntryLibrary()
Definition DynamicEntryLibrary.hpp:34
DynamicEntryLibrary(std::string name)
Definition DynamicEntryLibrary.hpp:38
Class which represents an entry in the dynamic table These entries are located in the ....
Definition DynamicEntry.hpp:36
TAG tag() const
Tag of the current entry. The most common tags are: DT_NEEDED, DT_INIT, ...
Definition DynamicEntry.hpp:205
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