16#ifndef LIEF_MACHO_RELOCATION_DYLD_COMMAND_H
17#define LIEF_MACHO_RELOCATION_DYLD_COMMAND_H
39 using LIEF::Relocation::operator<;
40 using LIEF::Relocation::operator<=;
41 using LIEF::Relocation::operator>;
42 using LIEF::Relocation::operator>=;
50 std::unique_ptr<Relocation>
clone()
const override {
71 return !(*
this < rhs);
76 return !(*
this > rhs);
85 std::ostream&
print(std::ostream& os)
const override {
Class used to parse a single binary (i.e. non-FAT).
Definition BinaryParser.hpp:78
RelocationDyld(const RelocationDyld &)=default
ORIGIN origin() const override
Origin of the relocation. For this concrete object, it should be Relocation::ORIGIN::DYLDINFO.
Definition RelocationDyld.hpp:63
void pc_relative(bool val) override
std::ostream & print(std::ostream &os) const override
Definition RelocationDyld.hpp:85
bool is_pc_relative() const override
Indicates whether the item containing the address to be relocated is part of a CPU instruction that u...
friend class BinaryParser
Definition RelocationDyld.hpp:35
std::unique_ptr< Relocation > clone() const override
Definition RelocationDyld.hpp:50
bool operator<(const RelocationDyld &rhs) const
bool operator>=(const RelocationDyld &rhs) const
Definition RelocationDyld.hpp:70
RelocationDyld & operator=(const RelocationDyld &)=default
bool operator>(const RelocationDyld &rhs) const
bool operator<=(const RelocationDyld &rhs) const
Definition RelocationDyld.hpp:75
~RelocationDyld() override=default
void accept(Visitor &visitor) const override
static bool classof(const Relocation &r)
Definition RelocationDyld.hpp:81
virtual ORIGIN origin() const =0
Origin of the relocation.
ORIGIN
Definition MachO/Relocation.hpp:48
@ DYLDINFO
Definition MachO/Relocation.hpp:50
virtual std::ostream & print(std::ostream &os) const
Definition Visitor.hpp:210
Namespace related to the LIEF's Mach-O module.
Definition Abstract/Header.hpp:36
LIEF namespace.
Definition Abstract/Binary.hpp:40
#define LIEF_API
Definition visibility.h:41