16#ifndef LIEF_ELF_NOTE_DETAILS_PROPERTIES_X86FEATURES_H
17#define LIEF_ELF_NOTE_DETAILS_PROPERTIES_X86FEATURES_H
68 using features_t = std::vector<std::pair<FLAG, FEATURE>>;
81 void dump(std::ostream &os)
const override;
86 inline static std::unique_ptr<X86Features> create_feat1(
FLAG flag,
BinaryStream& stream);
87 inline static std::unique_ptr<X86Features> create_feat2(
FLAG flag,
BinaryStream& stream);
90 features_(std::move(values))
Class that is used to a read stream of data from different sources.
Definition BinaryStream.hpp:34
This class wraps the different properties that can be used in a NT_GNU_PROPERTY_TYPE_0 note.
Definition NoteGnuProperty.hpp:35
TYPE
LIEF's mirror types of the original GNU_PROPERTY_ values.
Definition NoteGnuProperty.hpp:39
@ X86_FEATURE
Mirror of GNU_PROPERTY_X86_FEATURE_*
TYPE type() const
Return the LIEF's mirror type of the note.
Definition NoteGnuProperty.hpp:51
Class that wraps the NT_GNU_PROPERTY_TYPE_0 note.
Definition NoteGnuProperty.hpp:30
This class interfaces the different GNU_PROPERTY_X86_FEATURE_* properties which includes:
Definition X86Feature.hpp:31
static std::unique_ptr< X86Features > create(uint32_t type, BinaryStream &stream)
static bool classof(const NoteGnuProperty::Property *prop)
Definition X86Feature.hpp:70
FLAG
Flag according to the _AND, _USED or _NEEDED suffixes.
Definition X86Feature.hpp:35
@ NEEDED
For the original GNU_PROPERTY_X86_FEATURE_2_NEEDED property.
@ NONE
For the original GNU_PROPERTY_X86_FEATURE_1_AND property.
@ USED
For the original GNU_PROPERTY_X86_FEATURE_2_USED property.
const features_t & features() const
List of the features.
Definition X86Feature.hpp:77
void dump(std::ostream &os) const override
FEATURE
Features provided by these different properties.
Definition X86Feature.hpp:42
std::vector< std::pair< FLAG, FEATURE > > features_t
List of the features as a pair of FLAG, FEATURE.
Definition X86Feature.hpp:68
~X86Features() override=default
const char * to_string(DynamicEntry::TAG e)
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41