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

Class which represents an entry in the dynamic table These entries are located in the .dynamic section or the PT_DYNAMIC segment. More...

#include <DynamicEntry.hpp>

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

Public Member Functions

 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)
 
void accept (Visitor &visitor) const override
 
virtual std::ostream & print (std::ostream &os) const
 
- 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
 

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 an entry in the dynamic table These entries are located in the .dynamic section or the PT_DYNAMIC segment.

Member Function Documentation

◆ accept()

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

Implements LIEF::Object.

Reimplemented in LIEF::ELF::DynamicEntryFlags.

◆ value()

uint64_t LIEF::ELF::DynamicEntry::value ( ) const

Return the entry's value.

The meaning of the value strongly depends on the tag. It can be an offset, an index, a flag, ...


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