MachO

Macho_Binary_t **macho_parse(const char *file)

Wrapper on LIEF::MachO::Parser::parse.

void macho_binaries_destroy(Macho_Binary_t **binaries)

Macho_Binary_t

struct Macho_Binary_t

LIEF::MachO::Binary C Handler.

Public Members

void *handler
const char *name
uint64_t imagebase
Macho_Header_t header
Macho_Command_t **commands
Macho_Symbol_t **symbols
Macho_Section_t **sections
Macho_Segment_t **segments

Macho_Header_t

struct Macho_Header_t

Public Members

uint32_t magic
LIEF_MACHO_CPU_TYPES cpu_type
uint32_t cpu_subtype
LIEF_MACHO_FILE_TYPES file_type
uint32_t nb_cmds
uint32_t sizeof_cmds
uint32_t flags
uint32_t reserved

Macho_Section_t

struct Macho_Section_t

Public Members

const char *name
uint32_t alignment
uint32_t relocation_offset
uint32_t numberof_relocations
uint32_t flags
LIEF_MACHO_MACHO_SECTION_TYPES type
uint32_t reserved1
uint32_t reserved2
uint32_t reserved3
uint64_t virtual_address
uint64_t offset
uint64_t size
uint8_t *content
double entropy

Macho_Segment_t

struct Macho_Segment_t

Public Members

const char *name
uint64_t virtual_address
uint64_t virtual_size
uint64_t file_size
uint64_t file_offset
uint32_t max_protection
uint32_t init_protection
uint32_t numberof_sections
uint32_t flags
uint8_t *content
uint64_t size
Macho_Section_t **sections

Macho_Command_t

struct Macho_Command_t

Public Members

LIEF_MACHO_LOAD_COMMAND_TYPES command
uint32_t size
uint8_t *data
uint32_t offset

Macho_Symbol_t

struct Macho_Symbol_t

Public Members

const char *name
uint8_t type
uint8_t numberof_sections
uint16_t description
uint64_t value