Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_types.h>
#include <rz_util.h>
#include <rz_lib.h>
#include <rz_bin.h>
#include "mach0/fatmach0.h"
#include "mach0/mach0.h"
Go to the source code of this file.
Functions | |
static RzBinXtrData * | extract (RzBin *bin, int idx) |
static bool | checkHeader (RzBuffer *b) |
static bool | check_buffer (RzBuffer *buf) |
static void | free_xtr (void *xtr_obj) |
static void | destroy (RzBin *bin) |
static bool | load (RzBin *bin) |
static int | size (RzBin *bin) |
static void | fill_metadata_info_from_hdr (RzBinXtrMetadata *meta, struct MACH0_(mach_header) *hdr) |
static RzBinXtrData * | oneshot_buffer (RzBin *bin, RzBuffer *b, int idx) |
static RzList * | oneshotall_buffer (RzBin *bin, RzBuffer *b) |
Variables | |
RzBinXtrPlugin | rz_bin_xtr_plugin_xtr_fatmach0 |
RZ_API RzLibStruct | rizin_plugin |
Definition at line 40 of file bin_xtr_fatmach0.c.
References checkHeader(), and rz_return_val_if_fail.
Definition at line 14 of file bin_xtr_fatmach0.c.
References addr, b, h, off, rz_buf_read_at(), rz_buf_read_be32_at, rz_buf_size(), and ut64().
Referenced by check_buffer().
|
static |
|
static |
Definition at line 72 of file bin_xtr_fatmach0.c.
References arch, fill_metadata_info_from_hdr(), free(), setup::idx, MACH0_, NULL, rz_bin_fatmach0_extract(), rz_bin_xtrdata_new(), rz_buf_free(), and RZ_NEW0.
|
inlinestatic |
Definition at line 62 of file bin_xtr_fatmach0.c.
References rz_bin_xtr_metadata_t::arch, rz_bin_xtr_metadata_t::bits, get_bits_from_hdr(), get_cpusubtype_from_hdr(), get_cputype_from_hdr(), get_filetype_from_hdr(), rz_bin_xtr_metadata_t::libname, MACH0_, rz_bin_xtr_metadata_t::machine, NULL, strdup(), rz_bin_xtr_metadata_t::type, and rz_bin_xtr_metadata_t::xtr_type.
Referenced by extract(), and oneshot_buffer().
|
static |
Definition at line 45 of file bin_xtr_fatmach0.c.
References rz_bin_fatmach0_free().
Referenced by destroy().
Definition at line 53 of file bin_xtr_fatmach0.c.
References NULL, and rz_bin_fatmach0_new().
|
static |
Definition at line 100 of file bin_xtr_fatmach0.c.
References arch, b, fill_metadata_info_from_hdr(), free(), setup::idx, MACH0_, NULL, rz_bin_fatmach0_extract(), rz_bin_fatmach0_from_buffer_new(), rz_bin_xtrdata_new(), rz_buf_free(), RZ_NEW0, and rz_return_val_if_fail.
Referenced by oneshotall_buffer().
Definition at line 128 of file bin_xtr_fatmach0.c.
References b, rz_bin_xtr_extract_t::file_count, i, NULL, oneshot_buffer(), rz_bin_xtrdata_free(), rz_list_append(), and rz_list_newf().
Definition at line 57 of file bin_xtr_fatmach0.c.
RZ_API RzLibStruct rizin_plugin |
Definition at line 166 of file bin_xtr_fatmach0.c.
RzBinXtrPlugin rz_bin_xtr_plugin_xtr_fatmach0 |
Definition at line 151 of file bin_xtr_fatmach0.c.