Module commands
Modules§
- atom_
info - build_
version - code_
signature - code_
signature_ dir - data_
in_ code - dyld_
chained_ fixups - dyld_
environment - dyld_
export_ trie - dyldinfo
- dylib
- dylinker
- dynamic_
symbol_ command - encryption_
info - function_
variant_ fixups - function_
variants - functionstarts
- linker_
opt_ hint - main_
cmd - note
- routine
- rpath
- segment
- segment_
split_ info - source_
version - sub_
client - sub_
framework - symbol_
command - thread_
command - two_
level_ hints - unknown
- uuid
- version_
min
Structs§
- Atom
Info - Structure which represents the
LC_ATOM_INFO
command - Build
Version - Structure that represents the
LC_BUILD_VERSION
command - Code
Signature - Structure that represents the
LC_CODE_SIGNATURE
command - Code
Signature Dir - Structure that represents the
LC_DYLIB_CODE_SIGN_DRS
command - Data
InCode - Structure that represents the
LC_DATA_IN_CODE
command - Dyld
Chained Fixups - Structure that represents the
LC_DYLD_CHAINED_FIXUPS
command - Dyld
Environment - Structure that represents a
LC_DYLD_ENVIRONMENT
command which is used by the Mach-O linker/loader to initialize an environment variable - Dyld
Exports Trie - Structure that represents the
LC_DYLD_EXPORTS_TRIE
command - Dyld
Info - Structure that represents the
LC_DYLD_INFO
andLC_DYLD_INFO_ONLY
commands - Dylib
- Structure which represents a library dependency
- Dylinker
- Structure that represents the Mach-O linker, also named loader.
Most of the time,
Dylinker::name
should return/usr/lib/dyld
- Dynamic
Symbol Command - Structure that represents the
LC_DYSYMTAB
command. - Encryption
Info - Structure that represents the LC_ENCRYPTION_INFO / LC_ENCRYPTION_INFO_64 commands
- Function
Starts - Structure which represents the
LC_FUNCTION_STARTS
command - Function
Variant Fixups - Structure which represents the
LC_FUNCTION_VARIANT_FIXUPS
command - Function
Variants - Class representing the
LC_FUNCTION_VARIANTS
load command. - Generic
- Linker
OptHint - Structure which represents the
LC_LINKER_OPTIMIZATION_HINT
command - Main
- Structure that represent the
LC_MAIN
command. This kind of command can be used to determine the entrypoint of an executable. - Note
- Class that represent the
LC_NOTE
command. - RPath
- Structure that represents the
LC_RPATH
command. - Routine
- Class that represents the
LC_ROUTINE/LC_ROUTINE64
commands. Accodring to the Mach-Oloader.h
documentation: - Segment
- Class which represents a
LC_SEGMENT/LC_SEGMENT_64
command - Segment
Split Info - Structure that represents the
LC_SEGMENT_SPLIT_INFO
command - Source
Version - Class that represents the MachO
LC_SOURCE_VERSION
This command is used to provide the version of the sources used to build the binary. - SubClient
- Class that represents the SubClient command.
Accodring to the Mach-O
loader.h
documentation: - SubFramework
- Class that represents the SubFramework command.
Accodring to the Mach-O
loader.h
documentation: - Symbol
Command - Structure that represents the
LC_SYMTAB
command - Thread
Command - Structure that represents the
LC_THREAD
/LC_UNIXTHREAD
commands and that can be used to get the binary entrypoint when theLC_MAIN
is not present - TwoLevel
Hints - Structure which represents the
LC_TWOLEVEL_HINTS
command - UUID
- Structure that represents the
LC_UUID
command - Unknown
- Generic structure when the command is not recognized by LIEF (e.g private
LC_xxx
command) - Version
Min - Structure that wraps the
LC_VERSION_MIN_MACOSX, LC_VERSION_MIN_IPHONEOS, ...
commands.
Enums§
- Commands
- Enum that wraps all the different Mach-O load commands (
LC_xxx
). Note that all these commands implements the trait:Command
- Load
Command Types