16#ifndef LIEF_MACHO_RELOCATION_DYLD_COMMAND_H
17#define LIEF_MACHO_RELOCATION_DYLD_COMMAND_H
20#include "LIEF/visibility.h"
22#include "LIEF/MachO/Relocation.hpp"
38 using Relocation::Relocation;
46 std::unique_ptr<Relocation> clone()
const override {
59 Relocation::ORIGIN
origin()
const override {
60 return Relocation::ORIGIN::DYLDINFO;
63 void pc_relative(
bool val)
override;
67 return !(*
this < rhs);
70 bool operator>(
const RelocationDyld& rhs)
const;
71 bool operator<=(
const RelocationDyld& rhs)
const {
72 return !(*
this > rhs);
75 void accept(Visitor& visitor)
const override;
77 static bool classof(
const Relocation& r) {
78 return r.origin() == Relocation::ORIGIN::DYLDINFO;
81 std::ostream& print(std::ostream& os)
const override {
82 return Relocation::print(os);
Class used to parse a single binary (i.e. non-FAT)
Definition BinaryParser.hpp:73
Class that represents a relocation found in the DyldInfo structure.
Definition RelocationDyld.hpp:33
bool is_pc_relative() const override
Indicates whether the item containing the address to be relocated is part of a CPU instruction that u...
Relocation::ORIGIN origin() const override
Origin of the relocation. For this concrete object, it should be Relocation::ORIGIN::DYLDINFO.
Definition RelocationDyld.hpp:59
Class that represents a Mach-O relocation.
Definition MachO/Relocation.hpp:40
LIEF namespace.
Definition Abstract/Binary.hpp:32