LIEF: Library to Instrument Executable Formats Version 0.17.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_PE_IMPORT_ENTRY_H
17#define LIEF_PE_IMPORT_ENTRY_H
44 data_(data), type_(type)
48 this->name(std::move(name));
52 ImportEntry&
operator=(
const ImportEntry&) =
default;
64 static constexpr auto MASK = 0xFFFF;
65 return is_ordinal() ? (data_ & MASK) : 0;
72 uint16_t
hint()
const {
90 uint64_t
data()
const {
105 void accept(Visitor& visitor)
const override;
117 uint64_t iat_value_ = 0;
118 uint64_t ilt_value_ = 0;
120 PE_TYPE type_ = PE_TYPE::PE32_PLUS;
Class that is used to rebuild a raw PE binary from a PE::Binary object.
Definition PE/Builder.hpp:45
Class that represents an entry (i.e. an import) in the import table (Import).
Definition ImportEntry.hpp:36
ImportEntry(uint64_t data, PE_TYPE type)
Definition ImportEntry.hpp:43
void data(uint64_t data)
Definition ImportEntry.hpp:101
uint16_t ordinal() const
The ordinal value.
Definition ImportEntry.hpp:63
uint64_t ilt_value() const
Original value in the import lookup table. This value should match the iat_value().
Definition ImportEntry.hpp:87
~ImportEntry() override=default
uint64_t iat_value() const
Value of the current entry in the Import Address Table. It should match the lookup table value.
Definition ImportEntry.hpp:81
ImportEntry(const ImportEntry &)=default
uint16_t hint() const
Index into the Export::entries that is used to speed-up the symbol resolution.
Definition ImportEntry.hpp:75
void accept(Visitor &visitor) const override
friend std::ostream & operator<<(std::ostream &os, const ImportEntry &entry)
uint64_t hint_name_rva() const
Definition ImportEntry.hpp:69
ImportEntry & operator=(const ImportEntry &)=default
uint64_t data() const
Raw value.
Definition ImportEntry.hpp:92
bool is_ordinal() const
True if it is an import by ordinal
ImportEntry(std::string name)
Definition ImportEntry.hpp:47
uint64_t iat_address() const
Original address of the entry in the Import Address Table
Definition ImportEntry.hpp:97
std::string demangled_name() const
Demangled representation of the symbol or an empty string if it can't be demangled.
Main interface to parse PE binaries. In particular the static functions: Parser::parse should be used...
Definition PE/Parser.hpp:52
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
PE_TYPE
Definition PE/enums.hpp:22
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41
#define LIEF_LOCAL
Definition visibility.h:42