MachO

Typedefs

typedef struct Macho_Binary_t Macho_Binary_t

Functions

Macho_Binary_t **macho_parse(const char *file)

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

void macho_binaries_destroy(Macho_Binary_t **binaries)
struct Macho_Binary_t
#include <Binary.h>

LIEF::MachO::Binary C Handler.

Public Members

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

Defines

_LIEF_EN(N)
_LIEF_EN_2(N, TYPE)
_LIEF_EI(X)

Typedefs

typedef struct Macho_Header_t Macho_Header_t
struct Macho_Header_t

Public Members

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

Typedefs

typedef struct Macho_Command_t Macho_Command_t
struct Macho_Command_t

Public Members

enum LIEF_MACHO_LOAD_COMMAND_TYPES command
uint32_t size
uint8_t *data
uint32_t offset

Typedefs

typedef struct Macho_Section_t 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
enum 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

Typedefs

typedef struct Macho_Segment_t 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

Typedefs

typedef struct Macho_Symbol_t 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