LIEF: Library to Instrument Executable Formats Version 0.17.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_MACHO_ROUTINE_H
17#define LIEF_MACHO_ROUTINE_H
39 friend class BinaryParser;
49 std::unique_ptr<LoadCommand>
clone()
const override {
50 return std::unique_ptr<Routine>(
new Routine(*
this));
121 void accept(Visitor& visitor)
const override;
123 std::ostream&
print(std::ostream& os)
const override;
126 return cmd->
command() == LoadCommand::TYPE::ROUTINES ||
127 cmd->
command() == LoadCommand::TYPE::ROUTINES_64;
130 uint64_t init_address_ = 0;
131 uint64_t init_module_ = 0;
132 uint64_t reserved1_ = 0;
133 uint64_t reserved2_ = 0;
134 uint64_t reserved3_ = 0;
135 uint64_t reserved4_ = 0;
136 uint64_t reserved5_ = 0;
137 uint64_t reserved6_ = 0;
Class used to parse a single binary (i.e. non-FAT)
Definition BinaryParser.hpp:75
Based class for the Mach-O load commands.
Definition LoadCommand.hpp:37
LoadCommand::TYPE command() const
Command type.
Definition LoadCommand.hpp:125
Class that represents the LC_ROUTINE/LC_ROUTINE64 commands. Accodring to the Mach-O loader....
Definition Routine.hpp:38
static bool classof(const LoadCommand *cmd)
Definition Routine.hpp:125
uint64_t reserved4() const
Definition Routine.hpp:95
std::unique_ptr< LoadCommand > clone() const override
Definition Routine.hpp:49
void init_module(uint64_t mod)
Definition Routine.hpp:67
uint64_t reserved2() const
Definition Routine.hpp:79
void accept(Visitor &visitor) const override
Routine(const Routine ©)=default
std::ostream & print(std::ostream &os) const override
uint64_t reserved6() const
Definition Routine.hpp:111
uint64_t reserved1() const
Definition Routine.hpp:71
uint64_t init_address() const
address of initialization routine
Definition Routine.hpp:54
void reserved3(uint64_t value)
Definition Routine.hpp:91
void reserved5(uint64_t value)
Definition Routine.hpp:107
void reserved6(uint64_t value)
Definition Routine.hpp:115
Routine & operator=(const Routine ©)=default
void reserved1(uint64_t value)
Definition Routine.hpp:75
void reserved2(uint64_t value)
Definition Routine.hpp:83
uint64_t init_module() const
Index into the module table that the init routine is defined in.
Definition Routine.hpp:63
void init_address(uint64_t addr)
Definition Routine.hpp:58
void reserved4(uint64_t value)
Definition Routine.hpp:99
uint64_t reserved5() const
Definition Routine.hpp:103
uint64_t reserved3() const
Definition Routine.hpp:87
~Routine() override=default
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
#define LIEF_LOCAL
Definition visibility.h:42