Go to the documentation of this file.
16#ifndef LIEF_MACHO_RELOCATION_DYLD_COMMAND_H
17#define LIEF_MACHO_RELOCATION_DYLD_COMMAND_H
35 friend class BinaryParser;
38 using Relocation::Relocation;
39 using LIEF::Relocation::operator<;
40 using LIEF::Relocation::operator<=;
41 using LIEF::Relocation::operator>;
42 using LIEF::Relocation::operator>=;
45 RelocationDyld&
operator=(
const RelocationDyld&) =
default;
50 std::unique_ptr<Relocation>
clone()
const override {
51 return std::unique_ptr<RelocationDyld>(
new RelocationDyld(*
this));
60 ORIGIN
origin()
const override {
64 return ORIGIN::DYLDINFO;
71 return !(*
this < rhs);
76 return !(*
this > rhs);
79 void accept(Visitor& visitor)
const override;
81 static bool classof(
const Relocation& r) {
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.
Namespace related to the LIEF's Mach-O module.
Definition Abstract/Header.hpp:36
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41