Go to the documentation of this file.
16#ifndef LIEF_PE_LOAD_CONFIGURATION_DYNAMIC_FIXUP_H
17#define LIEF_PE_LOAD_CONFIGURATION_DYNAMIC_FIXUP_H
36 enum KIND { UNKNOWN = 0,
49 ARM64_KERNEL_IMPORT_CALL_TRANSFER,
52 GUARD_IMPORT_CONTROL_TRANSFER,
63 DynamicFixup&
operator=(
const DynamicFixup&) =
default;
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);
89 return const_cast<DynamicFixup*
>(
this)->as<T>();
93 std::ostream&
operator<<(std::ostream& os,
const DynamicFixup& fixup)
103 parse(Parser& ctx, SpanStream& stream, DynamicRelocation& R);
106 KIND kind_ = KIND::UNKNOWN;
This is the base class for any fixups located in DynamicRelocation.
Definition DynamicFixup.hpp:34
const T * as() const
Definition DynamicFixup.hpp:88
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
LIEF namespace.
Definition Abstract/Binary.hpp:36
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