16#ifndef LIEF_PE_LOAD_CONFIGURATION_DYNAMIC_FIXUP_H
17#define LIEF_PE_LOAD_CONFIGURATION_DYNAMIC_FIXUP_H
68 virtual std::unique_ptr<DynamicFixup>
clone()
const = 0;
79 static_assert(std::is_base_of<DynamicFixup, T>::value,
80 "Require DynamicFixup inheritance");
81 if (T::classof(
this)) {
82 return static_cast<T*
>(
this);
const T * as() const
Definition DynamicFixup.hpp:88
KIND
Definition DynamicFixup.hpp:36
@ ARM64_KERNEL_IMPORT_CALL_TRANSFER
If DynamicRelocation::symbol is set to IMAGE_DYNAMIC_RELOCATION_ARM64_KERNEL_IMPORT_CALL_TRANSFER.
Definition DynamicFixup.hpp:51
@ ARM64X
If DynamicRelocation::symbol is set to IMAGE_DYNAMIC_RELOCATION_ARM64X.
Definition DynamicFixup.hpp:45
@ GUARD_IMPORT_CONTROL_TRANSFER
If DynamicRelocation::symbol is set to IMAGE_DYNAMIC_RELOCATION_GUARD_IMPORT_CONTROL_TRANSFER.
Definition DynamicFixup.hpp:54
@ GENERIC
If DynamicRelocation::symbol is not a special value.
Definition DynamicFixup.hpp:42
@ UNKNOWN
If DynamicRelocation::symbol is a special value that is not supported by LIEF.
Definition DynamicFixup.hpp:39
@ FUNCTION_OVERRIDE
If DynamicRelocation::symbol is set to IMAGE_DYNAMIC_RELOCATION_FUNCTION_OVERRIDE.
Definition DynamicFixup.hpp:48
T * as()
Definition DynamicFixup.hpp:78
DynamicFixup & operator=(const DynamicFixup &)=default
KIND kind() const
Encoding of the fixups.
Definition DynamicFixup.hpp:73
friend std::ostream & operator<<(std::ostream &os, const DynamicFixup &fixup)
Definition DynamicFixup.hpp:93
virtual std::unique_ptr< DynamicFixup > clone() const =0
DynamicFixup(const DynamicFixup &)=default
virtual std::string to_string() const =0
DynamicFixup & operator=(DynamicFixup &&)=default
DynamicFixup(DynamicFixup &&)=default
virtual ~DynamicFixup()=default
DynamicFixup(KIND kind)
Definition DynamicFixup.hpp:58
This is the base class for any IMAGE_DYNAMIC_RELOCATION32, IMAGE_DYNAMIC_RELOCATION32_V2,...
Definition DynamicRelocationBase.hpp:33
Main interface to parse PE binaries. In particular the static functions: Parser::parse should be used...
Definition PE/Parser.hpp:52
Definition SpanStream.hpp:32
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
@ T
Definition AcceleratorCodes.hpp:97
@ R
Definition AcceleratorCodes.hpp:95
LIEF namespace.
Definition Abstract/Binary.hpp:40
result< ok_t > ok_error_t
Opaque structure that is used by LIEF to avoid writing result<void> f(...). Instead,...
Definition errors.hpp:109
#define LIEF_API
Definition visibility.h:41
#define LIEF_LOCAL
Definition visibility.h:42