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;
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;
67 void pc_relative(
bool val)
override;
71 return !(*
this < rhs);
74 bool operator>(
const RelocationDyld& rhs)
const;
75 bool operator<=(
const RelocationDyld& rhs)
const {
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
ORIGIN origin() const override
Origin of the relocation. For this concrete object, it should be Relocation::ORIGIN::DYLDINFO.
Definition RelocationDyld.hpp:63
bool is_pc_relative() const override
Indicates whether the item containing the address to be relocated is part of a CPU instruction that u...
Class that represents a Mach-O relocation.
Definition MachO/Relocation.hpp:40
LIEF namespace.
Definition Abstract/Binary.hpp:31