LIEF: Library to Instrument Executable Formats Version 1.0.0
Loading...
Searching...
No Matches
LIEF::ELF::Needed Class Reference

This class represents the GNU_PROPERTY_1_NEEDED note property. More...

#include <Needed.hpp>

Inheritance diagram for LIEF::ELF::Needed:
Collaboration diagram for LIEF::ELF::Needed:

Public Types

enum class  NEED { UNKNOWN = 0 , INDIRECT_EXTERN_ACCESS }
Public Types inherited from LIEF::ELF::NoteGnuProperty::Property
enum class  TYPE {
  UNKNOWN = 0 , GENERIC , AARCH64_FEATURES , AARCH64_PAUTH ,
  STACK_SIZE , NO_COPY_ON_PROTECTED , X86_ISA , X86_FEATURE ,
  NEEDED
}
 LIEF's mirror types of the original GNU_PROPERTY_ values. More...

Public Member Functions

const std::vector< NEED > & needs () const
 Return the list of needed features.
void dump (std::ostream &os) const override
 ~Needed () override=default
Public Member Functions inherited from LIEF::ELF::NoteGnuProperty::Property
TYPE type () const
 Return the LIEF's mirror type of the note.
virtual ~Property ()=default

Static Public Member Functions

static bool classof (const NoteGnuProperty::Property *prop)
static std::unique_ptr< Needed > create (BinaryStream &stream)

Detailed Description

This class represents the GNU_PROPERTY_1_NEEDED note property.

This property provides information about additional features that the object file needs at runtime (e.g. indirect external access).

Member Enumeration Documentation

◆ NEED

enum class LIEF::ELF::Needed::NEED
strong
Enumerator
UNKNOWN 
INDIRECT_EXTERN_ACCESS 

The object needs indirect external access.

Constructor & Destructor Documentation

◆ ~Needed()

LIEF::ELF::Needed::~Needed ( )
overridedefault

References needs().

Member Function Documentation

◆ classof()

bool LIEF::ELF::Needed::classof ( const NoteGnuProperty::Property * prop)
inlinestatic

◆ create()

std::unique_ptr< Needed > LIEF::ELF::Needed::create ( BinaryStream & stream)
static

◆ dump()

void LIEF::ELF::Needed::dump ( std::ostream & os) const
overridevirtual

◆ needs()

const std::vector< NEED > & LIEF::ELF::Needed::needs ( ) const
inline

Return the list of needed features.

Referenced by ~Needed().


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