Go to the documentation of this file.
16#ifndef LIEF_ELF_NOTE_DETAILS_PROPERTIES_X86ISA_H
17#define LIEF_ELF_NOTE_DETAILS_PROPERTIES_X86ISA_H
78 using values_t = std::vector<std::pair<FLAG, ISA>>;
80 static bool classof(
const NoteGnuProperty::Property* prop) {
81 return prop->
type() == NoteGnuProperty::Property::TYPE::X86_ISA;
84 static std::unique_ptr<X86ISA>
create(uint32_t type, BinaryStream& stream);
85 const values_t&
values()
const {
93 void dump(std::ostream &os)
const override;
96 inline static std::unique_ptr<X86ISA>
97 create_isa_1(FLAG flag, BinaryStream& stream);
98 inline static std::unique_ptr<X86ISA>
99 create_compat_isa_1(FLAG flag, BinaryStream& stream,
bool is_compat2);
100 X86ISA(values_t values) :
101 NoteGnuProperty::Property(NoteGnuProperty::Property::TYPE::X86_ISA),
102 values_(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_ISA_* properties which includes:
Definition X86ISA.hpp:35
void dump(std::ostream &os) const override
ISA
Definition X86ISA.hpp:42
static std::unique_ptr< X86ISA > create(uint32_t type, BinaryStream &stream)
~X86ISA() override=default
FLAG
Definition X86ISA.hpp:37
const values_t & values() const
List of the ISA values in this property.
Definition X86ISA.hpp:87
static bool classof(const NoteGnuProperty::Property *prop)
Definition X86ISA.hpp:80
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