15#ifndef LIEF_PE_EX_DLL_CHARACTERISTICS_H
16#define LIEF_PE_EX_DLL_CHARACTERISTICS_H
33 CET_COMPAT_STRICT_MODE = 0x02,
34 CET_SET_CONTEXT_IP_VALIDATION_RELAXED_MODE = 0x04,
35 CET_DYNAMIC_APIS_ALLOW_IN_PROC = 0x08,
36 CET_RESERVED_1 = 0x10,
37 CET_RESERVED_2 = 0x20,
38 FORWARD_CFI_COMPAT = 0x40,
39 HOTPATCH_COMPATIBLE = 0x80,
42 static std::unique_ptr<ExDllCharacteristics>
56 std::unique_ptr<Debug>
clone()
const override {
70 return (characteristics_ & (uint32_t)c) != 0;
82 uint32_t characteristics_ = 0;
span< uint8_t > payload()
Debug data associated with this entry.
const Section * section() const
The section where debug data is located.
Definition debug/Debug.hpp:168
@ EX_DLLCHARACTERISTICS
Extended DLL characteristics.
Definition debug/Debug.hpp:99
bool has(CHARACTERISTICS c) const
Check if the given CHARACTERISTICS is used.
Definition ExDllCharacteristics.hpp:69
CHARACTERISTICS characteristics() const
Return the characteristics.
Definition ExDllCharacteristics.hpp:61
ExDllCharacteristics(ExDllCharacteristics &&)=default
ExDllCharacteristics(const ExDllCharacteristics &other)=default
CHARACTERISTICS
Extended DLL Characteristics.
Definition ExDllCharacteristics.hpp:31
std::unique_ptr< Debug > clone() const override
Definition ExDllCharacteristics.hpp:56
static bool classof(const Debug *debug)
Definition ExDllCharacteristics.hpp:73
static std::unique_ptr< ExDllCharacteristics > parse(const details::pe_debug &hdr, Section *section, span< uint8_t > payload)
std::string to_string() const override
~ExDllCharacteristics() override=default
ExDllCharacteristics & operator=(ExDllCharacteristics &&other)=default
ExDllCharacteristics & operator=(const ExDllCharacteristics &other)=default
std::vector< CHARACTERISTICS > characteristics_list() const
Characteristics as a vector.
ExDllCharacteristics(const details::pe_debug &debug, Section *sec, uint32_t characteristics)
Definition ExDllCharacteristics.hpp:45
Class which represents a PE section.
Definition PE/Section.hpp:46
#define ENABLE_BITMASK_OPERATORS(X)
Definition enums.hpp:23
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:31
const char * to_string(CODE_PAGES e)
tcb::span< ElementType, Extent > span
Definition span.hpp:22
#define LIEF_API
Definition visibility.h:44