LIEF: Library to Instrument Executable Formats Version
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
LIEF::ELF::DynamicEntryRpath Class Reference

Class which represents a DT_RPATH entry. This attribute is deprecated (cf. man ld) in favour of DT_RUNPATH (See DynamicRunPath) More...

#include <DynamicEntryRpath.hpp>

Inheritance diagram for LIEF::ELF::DynamicEntryRpath:
Inheritance graph
[legend]
Collaboration diagram for LIEF::ELF::DynamicEntryRpath:
Collaboration graph
[legend]

Public Member Functions

 DynamicEntryRpath (std::string rpath)
 
 DynamicEntryRpath (const std::vector< std::string > &paths)
 Constructor from a list of paths.
 
DynamicEntryRpathoperator= (const DynamicEntryRpath &)
 
 DynamicEntryRpath (const DynamicEntryRpath &)
 
const std::string & name () const
 The actual rpath as a string.
 
void name (const std::string &name)
 
const std::string & rpath () const
 The actual rpath as a string.
 
void rpath (const std::string &name)
 
std::vector< std::string > paths () const
 Paths as a list.
 
void paths (const std::vector< std::string > &paths)
 
DynamicEntryRpathinsert (size_t pos, const std::string &path)
 Insert a path at the given position
 
DynamicEntryRpathappend (const std::string &path)
 Append the given path
 
DynamicEntryRpathremove (const std::string &path)
 Remove the given path
 
DynamicEntryRpathoperator+= (const std::string &path)
 
DynamicEntryRpathoperator-= (const std::string &path)
 
void accept (Visitor &visitor) const override
 
std::ostream & print (std::ostream &os) const override
 
 DynamicEntry (const details::Elf64_Dyn &header)
 
 DynamicEntry (const details::Elf32_Dyn &header)
 
 DynamicEntry ()
 
 DynamicEntry (DYNAMIC_TAGS tag, uint64_t value)
 
 DynamicEntry (const DynamicEntry &)
 
- Public Member Functions inherited from LIEF::ELF::DynamicEntry
 DynamicEntry (const details::Elf64_Dyn &header)
 
 DynamicEntry (const details::Elf32_Dyn &header)
 
 DynamicEntry (DYNAMIC_TAGS tag, uint64_t value)
 
DynamicEntryoperator= (const DynamicEntry &)
 
 DynamicEntry (const DynamicEntry &)
 
DYNAMIC_TAGS tag () const
 Tag of the current entry. The most common tags are: DT_NEEDED, DT_INIT, ...
 
uint64_t value () const
 Return the entry's value.
 
void tag (DYNAMIC_TAGS tag)
 
void value (uint64_t value)
 
- Public Member Functions inherited from LIEF::Object
 Object (const Object &other)
 
Objectoperator= (const Object &other)
 
template<class T >
output_t< T > as ()
 
template<class T >
output_const_t< T > as () const
 
virtual bool operator== (const Object &other) const
 
virtual bool operator!= (const Object &other) const
 

Static Public Member Functions

static bool classof (const DynamicEntry *entry)
 

Static Public Attributes

static constexpr char delimiter = ':'
 

Additional Inherited Members

- Public Types inherited from LIEF::Object
template<class T >
using output_t = add_pointer_t< decay_t< T > >
 
template<class T >
using output_const_t = add_pointer_t< add_const_t< decay_t< T > > >
 

Detailed Description

Class which represents a DT_RPATH entry. This attribute is deprecated (cf. man ld) in favour of DT_RUNPATH (See DynamicRunPath)

Member Function Documentation

◆ accept()

void LIEF::ELF::DynamicEntryRpath::accept ( Visitor visitor) const
overridevirtual

Reimplemented from LIEF::ELF::DynamicEntry.

◆ print()

std::ostream & LIEF::ELF::DynamicEntryRpath::print ( std::ostream &  os) const
overridevirtual

Reimplemented from LIEF::ELF::DynamicEntry.


The documentation for this class was generated from the following file: