16#ifndef LIEF_MACHO_RELOCATION_DYLD_COMMAND_H
17#define LIEF_MACHO_RELOCATION_DYLD_COMMAND_H
38 using Relocation::Relocation;
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 {
64 return ORIGIN::DYLDINFO;
71 return !(*
this < rhs);
76 return !(*
this > rhs);
82 return r.
origin() == Relocation::ORIGIN::DYLDINFO;
85 std::ostream&
print(std::ostream& os)
const override {
86 return Relocation::print(os);
Class used to parse a single binary (i.e. non-FAT)
Definition BinaryParser.hpp:74
Class that represents a relocation found in the DyldInfo structure.
Definition RelocationDyld.hpp:33
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...
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
Class that represents a Mach-O relocation.
Definition MachO/Relocation.hpp:40
virtual ORIGIN origin() const =0
Origin of the relocation.
ORIGIN
Definition MachO/Relocation.hpp:48
Definition Visitor.hpp:224
LIEF namespace.
Definition Abstract/Binary.hpp:32
#define LIEF_API
Definition visibility.h:41