LIEF: Library to Instrument Executable Formats Version 0.16.5
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_PE_RELOCATION_H
17#define LIEF_PE_RELOCATION_H
33struct pe_base_relocation_block;
43 using entries_t = std::vector<std::unique_ptr<RelocationEntry>>;
44 using it_entries = ref_iterator<entries_t&, RelocationEntry*>;
45 using it_const_entries = const_ref_iterator<const entries_t&, RelocationEntry*>;
58 Relocation(
const details::pe_base_relocation_block& header);
61 void swap(Relocation& other);
65 return virtual_address_;
73 it_const_entries
entries()
const {
83 virtual_address_ = virtual_address;
86 block_size_ = block_size;
89 RelocationEntry&
add_entry(
const RelocationEntry& entry);
91 void accept(Visitor& visitor)
const override;
95 uint32_t block_size_ = 0;
96 uint32_t virtual_address_ = 0;
Class which represents an entry of the PE relocation table.
Definition RelocationEntry.hpp:36
Class which represents the Base Relocation Block We usually find this structure in the ....
Definition PE/Relocation.hpp:38
Relocation & operator=(Relocation other)
it_entries entries()
Definition PE/Relocation.hpp:78
Relocation(Relocation &&)
void accept(Visitor &visitor) const override
uint32_t block_size() const
The total number of bytes in the base relocation block. block_size = sizeof(BaseRelocationBlock) + nb...
Definition PE/Relocation.hpp:70
void swap(Relocation &other)
Relocation & operator=(Relocation &&other)
uint32_t virtual_address() const
The RVA for which the offset of the relocation entries (RelocationEntry) is added.
Definition PE/Relocation.hpp:64
RelocationEntry & add_entry(const RelocationEntry &entry)
Relocation(uint32_t base)
void virtual_address(uint32_t virtual_address)
Definition PE/Relocation.hpp:82
it_const_entries entries() const
Iterator over the RelocationEntry.
Definition PE/Relocation.hpp:75
Relocation(const details::pe_base_relocation_block &header)
Relocation(const Relocation &other)
friend std::ostream & operator<<(std::ostream &os, const Relocation &relocation)
Relocation(uint32_t base, uint32_t block_size)
void block_size(uint32_t block_size)
Definition PE/Relocation.hpp:85
Definition CodeIntegrity.hpp:26
Namespace related to the LIEF's PE module.
Definition Abstract/Header.hpp:32
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41