LIEF: Library to Instrument Executable Formats Version 0.17.0
|
This class represents a stub entry in sections like __stubs,__auth_stubs
.
More...
#include <Stub.hpp>
Classes | |
class | Iterator |
struct | target_info_t |
Public Member Functions | |
Stub ()=delete | |
Stub (const Stub &)=default | |
Stub & | operator= (const Stub &)=default |
Stub (Stub &&) noexcept=default | |
Stub & | operator= (Stub &&) noexcept=default |
~Stub ()=default | |
Stub (target_info_t target_info, uint64_t addr, std::vector< uint8_t > raw) | |
span< const uint8_t > | raw () const |
The (raw) instructions of this entry as a slice of bytes. | |
uint64_t | address () const |
The virtual address where the stub is located. | |
result< uint64_t > | target () const |
The address resolved by this stub. | |
This class represents a stub entry in sections like __stubs,__auth_stubs
.
It wraps assembly instructions which are used to access the got where the address of the symbol is resolved.
Example:
|
delete |
|
default |
|
defaultnoexcept |
|
default |
|
inline |
|
inline |
The virtual address where the stub is located.
|
inline |
The (raw) instructions of this entry as a slice of bytes.
result< uint64_t > LIEF::MachO::Stub::target | ( | ) | const |
The address resolved by this stub.
For instance, given this stub:
The function returns: 0x4018
.