44 enum class BASE_TYPES {
54 ARM_MOV32A = 5 + 0x101,
55 ARM_MOV32 = 5 + 0x102,
56 RISCV_HI20 = 5 + 0x103,
61 ARM_MOV32T = 7 + 0x201,
62 THUMB_MOV32 = 7 + 0x202,
63 RISCV_LOW12I = 7 + 0x203,
68 MIPS_JMPADDR16 = 9 + 0x300,
89 void address(uint64_t address)
override;
92 size_t size()
const override;
94 void size(
size_t size)
override;
111 void data(uint16_t data);
113 void position(uint16_t position) {
114 position_ = position;
117 void type(BASE_TYPES type) {
123 LIEF_API
friend std::ostream& operator<<(std::ostream& os,
const RelocationEntry& entry);
128 uint16_t position_ = 0;
129 BASE_TYPES type_ = BASE_TYPES::ABS;
Class which represents an entry of the PE relocation table.
Definition RelocationEntry.hpp:37
size_t size() const override
The size of the relocatable pointer.
uint16_t position() const
Offset relative to Relocation::virtual_address where the relocation occurs.
Definition RelocationEntry.hpp:102
uint16_t data() const
Raw data of the relocation:
uint64_t address() const override
The address of the relocation.
void accept(Visitor &visitor) const override
Method so that the visitor can visit us.
BASE_TYPES type() const
Type of the relocation.
Definition RelocationEntry.hpp:107