LIEF: Library to Instrument Executable Formats Version 0.16.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_ELF_NOTE_DETAILS_PROPERTIES_X86FEATURES_H
17#define LIEF_ELF_NOTE_DETAILS_PROPERTIES_X86FEATURES_H
63 using features_t = std::vector<std::pair<FLAG, FEATURE>>;
71 static bool classof(
const NoteGnuProperty::Property* prop) {
72 return prop->
type() == NoteGnuProperty::Property::TYPE::X86_FEATURE;
75 static std::unique_ptr<X86Features>
create(uint32_t type, BinaryStream& stream);
82 void dump(std::ostream &os)
const override;
87 inline static std::unique_ptr<X86Features> create_feat1(FLAG flag, BinaryStream& stream);
88 inline static std::unique_ptr<X86Features> create_feat2(FLAG flag, BinaryStream& stream);
89 X86Features(features_t values) :
90 NoteGnuProperty::Property(NoteGnuProperty::Property::TYPE::X86_FEATURE),
91 features_(std::move(values))
This class wraps the different properties that can be used in a NT_GNU_PROPERTY_TYPE_0 note.
Definition NoteGnuProperty.hpp:35
TYPE type() const
Return the LIEF's mirror type of the note.
Definition NoteGnuProperty.hpp:52
This class interfaces the different GNU_PROPERTY_X86_FEATURE_* properties which includes:
Definition X86Feature.hpp:32
static std::unique_ptr< X86Features > create(uint32_t type, BinaryStream &stream)
static bool classof(const NoteGnuProperty::Property *prop)
Definition X86Feature.hpp:71
FLAG
Flag according to the _AND, _USED or _NEEDED suffixes.
Definition X86Feature.hpp:36
const features_t & features() const
List of the features.
Definition X86Feature.hpp:78
void dump(std::ostream &os) const override
FEATURE
Features provided by these different properties.
Definition X86Feature.hpp:43
~X86Features() override=default
Namespace related to the LIEF's ELF module.
Definition Abstract/Header.hpp:28
const char * to_string(DynamicEntry::TAG e)
@ NONE
Definition ELF/enums.hpp:31
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41