16#ifndef LIEF_ELF_NOTE_DETAILS_PROPERTIES_X86FEATURES_H
17#define LIEF_ELF_NOTE_DETAILS_PROPERTIES_X86FEATURES_H
69 using features_t = std::vector<std::pair<FLAG, FEATURE>>;
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);
91 features_(std::move(values))
Class that is used to a read stream of data from different sources.
Definition BinaryStream.hpp:33
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_*.
Definition NoteGnuProperty.hpp:47
TYPE type() const
Return the LIEF's mirror type of the note.
Definition NoteGnuProperty.hpp:52
Class that wraps the NT_GNU_PROPERTY_TYPE_0 note.
Definition NoteGnuProperty.hpp:30
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
@ NEEDED
For the original GNU_PROPERTY_X86_FEATURE_2_NEEDED property.
Definition X86Feature.hpp:39
@ NONE
For the original GNU_PROPERTY_X86_FEATURE_1_AND property.
Definition X86Feature.hpp:37
@ USED
For the original GNU_PROPERTY_X86_FEATURE_2_USED property.
Definition X86Feature.hpp:38
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
@ MASK
Definition X86Feature.hpp:61
@ YMM
Definition X86Feature.hpp:54
@ XSAVE
Definition X86Feature.hpp:57
@ MMX
Definition X86Feature.hpp:52
@ LAM_U57
Definition X86Feature.hpp:49
@ XSAVEC
Definition X86Feature.hpp:59
@ UNKNOWN
Definition X86Feature.hpp:44
@ ZMM
Definition X86Feature.hpp:55
@ FXSR
Definition X86Feature.hpp:56
@ XMM
Definition X86Feature.hpp:53
@ TMM
Definition X86Feature.hpp:60
@ SHSTK
Definition X86Feature.hpp:47
@ X87
Definition X86Feature.hpp:51
@ IBT
Definition X86Feature.hpp:46
@ LAM_U48
Definition X86Feature.hpp:48
@ XSAVEOPT
Definition X86Feature.hpp:58
@ X86
Definition X86Feature.hpp:50
std::vector< std::pair< FLAG, FEATURE > > features_t
List of the features as a pair of FLAG, FEATURE.
Definition X86Feature.hpp:69
~X86Features() override=default
Namespace related to the LIEF's ELF module.
Definition Abstract/Header.hpp:28
const char * to_string(DynamicEntry::TAG e)
LIEF namespace.
Definition Abstract/Binary.hpp:40
#define LIEF_API
Definition visibility.h:41