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 <rz_core.h>
#include "../i/private.h"
#include "mach0/mach0.h"
#include "objc/mach0_classes.h"
#include <ht_uu.h>
Go to the source code of this file.
Macros | |
#define | B(x, y) rz_buf_append_bytes(buf, (const ut8 *)(x), y) |
#define | D(x) rz_buf_append_ut32(buf, x) |
#define | Z(x) rz_buf_append_nbytes(buf, x) |
#define | W(x, y, z) rz_buf_write_at(buf, x, (const ut8 *)(y), z) |
#define | WZ(x, y) |
Variables | |
RzBinPlugin | rz_bin_plugin_mach0 |
RZ_API RzLibStruct | rizin_plugin |
#define D | ( | x | ) | rz_buf_append_ut32(buf, x) |
#define WZ | ( | x, | |
y | |||
) |
#define Z | ( | x | ) | rz_buf_append_nbytes(buf, x) |
|
static |
Definition at line 176 of file bin_mach0.c.
References rz_bin_symbol_t::bits, p, rz_bin_symbol_t::paddr, and rz_bin_symbol_t::vaddr.
Referenced by symbols().
Definition at line 61 of file bin_mach0.c.
References rz_bin_object_t::bin_obj, get_baddr(), MACH0_, rz_bin_file_t::o, rz_return_val_if_fail, and UT64_MAX.
Referenced by create().
|
static |
Definition at line 813 of file bin_mach0.c.
References addr, rz_bin_object_t::bin_obj, get_main(), MACH0_, NULL, rz_bin_file_t::o, rz_bin_addr_t::paddr, RZ_BIN_SPECIAL_SYMBOL_MAIN, RZ_NEW0, ut64(), UT64_MAX, and rz_bin_addr_t::vaddr.
Definition at line 531 of file bin_mach0.c.
References b, rz_buf_read_at(), and rz_buf_size().
Definition at line 525 of file bin_mach0.c.
References MACH0_, NULL, and parse_classes().
|
static |
Definition at line 544 of file bin_mach0.c.
References rz_bin_arch_options_t::arch, B, baddr(), rz_bin_arch_options_t::bits, D, free(), is_arm(), NULL, rz_buf_new_with_bytes(), rz_buf_size(), RZ_LOG_ERROR, rz_return_val_if_fail, W, WZ, and Z.
|
static |
Definition at line 56 of file bin_mach0.c.
References rz_bin_object_t::bin_obj, MACH0_, mach0_free(), and rz_bin_file_t::o.
Definition at line 27 of file bin_mach0.c.
References rz_bin_object_t::bin_obj, NULL, rz_bin_file_t::o, pj_drain(), pj_new(), pj_s(), rz_return_val_if_fail, and rz_str_dup().
Referenced by parse_signature().
Definition at line 140 of file bin_mach0.c.
References rz_bin_object_t::bin_obj, rz_bin_addr_t::bits, bits(), rz_bin_object_t::boffset, free(), get_bits, get_entrypoint(), rz_bin_addr_t::hpaddr, MACH0_, NULL, rz_bin_file_t::o, rz_bin_addr_t::paddr, process_constructors(), rz_list_append(), rz_list_newf(), RZ_NEW0, rz_return_val_if_fail, and rz_bin_addr_t::vaddr.
Definition at line 18 of file bin_mach0.c.
References rz_bin_object_t::bin_obj, NULL, and rz_bin_file_t::o.
|
static |
Definition at line 320 of file bin_mach0.c.
References rz_bin_import_t::bind, rz_bin_t::constpool, found, rz_bin_import_t::name, NULL, RZ_NEW0, rz_str_constpool_get(), strdup(), type, and rz_bin_import_t::type.
Definition at line 364 of file bin_mach0.c.
References rz_bin_object_t::bin_obj, free(), get_imports(), i, import_from_name(), MACH0_, name, rz_bin_import_t::name, NULL, rz_bin_file_t::o, rz_bin_import_t::ordinal, rz_bin_file_t::rbin, rz_bin_import_free(), rz_list_append(), rz_list_free(), and rz_list_newf().
Definition at line 478 of file bin_mach0.c.
References rz_bin_info_t::arch, rz_bin_info_t::bclass, rz_bin_info_t::big_endian, rz_bin_object_t::bin_obj, rz_bin_info_t::bits, rz_bin_info_t::compiler, rz_bin_info_t::dbg_info, rz_bin_info_t::file, rz_bin_file_t::file, get_bits, get_class(), get_cpusubtype(), get_cputype(), get_filetype(), get_intrp(), get_os(), rz_bin_info_t::has_canary, rz_bin_info_t::has_crypto, has_nx(), rz_bin_info_t::has_nx, rz_bin_info_t::has_pi, rz_bin_info_t::has_retguard, rz_bin_info_t::has_sanitizers, rz_bin_info_t::has_va, rz_bin_info_t::intrp, is_big_endian(), is_pie(), rz_bin_info_t::lang, MACH0_, rz_bin_info_t::machine, NULL, rz_bin_file_t::o, rz_bin_info_t::os, rz_bin_info_t::rclass, RZ_NEW0, rz_return_val_if_fail, rz_str_dup(), cmd_descs_generate::str, strdup(), rz_bin_info_t::subsystem, and rz_bin_info_t::type.
Definition at line 458 of file bin_mach0.c.
References rz_bin_object_t::bin_obj, free(), get_libs(), i, MACH0_, NULL, rz_bin_file_t::o, rz_list_append(), rz_list_newf(), and strdup().
|
static |
Definition at line 42 of file bin_mach0.c.
References rz_bin_object_t::bin_obj, MACH0_, opts_set_default(), rz_return_val_if_fail, and sdb_ns_set().
Definition at line 79 of file bin_mach0.c.
References rz_bin_addr_t::bits, bits(), rz_bin_addr_t::hpaddr, rz_bin_addr_t::paddr, RZ_NEW0, type, rz_bin_addr_t::type, and rz_bin_addr_t::vaddr.
Referenced by process_constructors().
Definition at line 96 of file bin_mach0.c.
References bits(), rz_bin_file_t::buf, calloc(), free(), i, rz_bin_section_t::name, newEntry(), rz_bin_section_t::paddr, read(), RZ_BIN_ENTRY_TYPE_FINI, RZ_BIN_ENTRY_TYPE_INIT, rz_buf_read_at(), rz_list_append(), RZ_LOG_ERROR, rz_read_le32(), rz_read_le64(), sections(), rz_bin_section_t::size, type, and ut64().
Referenced by entries().
Definition at line 410 of file bin_mach0.c.
References reloc_t::addend, rz_bin_reloc_t::addend, rz_bin_reloc_t::additive, reloc_t::addr, rz_bin_object_t::bin_obj, rz_list_t::free, free(), get_relocs(), rz_bin_reloc_t::import, import_from_name(), MACH0_, reloc_t::name, NULL, rz_bin_file_t::o, reloc_t::offset, reloc_t::ord, rz_bin_reloc_t::paddr, rz_bin_file_t::rbin, rz_list_append(), rz_list_newf(), RZ_NEW0, rz_skiplist_foreach, reloc_t::target, rz_bin_reloc_t::target_vaddr, reloc_t::type, rz_bin_reloc_t::type, and rz_bin_reloc_t::vaddr.
Definition at line 75 of file bin_mach0.c.
References get_segments(), and MACH0_.
Referenced by process_constructors(), and size().
Definition at line 834 of file bin_mach0.c.
References len, rz_bin_file_t::o, off, sections(), rz_bin_object_t::sections, section::size, and ut64().
Definition at line 851 of file bin_mach0.c.
References rz_bin_file_strings().
Definition at line 193 of file bin_mach0.c.
References _handle_arm_thumb(), addr, symbol_t::addr, rz_bin_object_t::bin_obj, rz_bin_symbol_t::bind, symbol_t::bits, rz_bin_symbol_t::bits, rz_bin_object_t::boffset, rz_bin_symbol_t::classname, CPU_TYPE_ARM, rz_bin_symbol_t::dname, rz_bin_symbol_t::forwarder, free(), get_bits, get_symbols(), i, symbol_t::is_imported, rz_bin_symbol_t::is_imported, IS_UPPER, symbol_t::last, MACH0_, rz_bin_symbol_t::name, NULL, rz_bin_file_t::o, symbol_t::offset, rz_bin_symbol_t::ordinal, p, rz_bin_symbol_t::paddr, PFMT64x, RZ_BIN_BIND_GLOBAL_STR, RZ_BIN_BIND_LOCAL_STR, RZ_BIN_DBG_STRIPPED, rz_bin_demangle(), RZ_BIN_MACH0_SYMBOL_TYPE_LOCAL, rz_bin_symbol_free(), RZ_BIN_TYPE_FUNC_STR, rz_list_append(), rz_list_newf(), RZ_NEW0, rz_str_newf(), rz_uleb128_decode(), set_u_add(), set_u_contains(), set_u_free(), set_u_new(), symbol_t::size, rz_bin_symbol_t::size, strdup(), symbol_t::type, rz_bin_symbol_t::type, ut64(), rz_bin_symbol_t::vaddr, and value.
RZ_API RzLibStruct rizin_plugin |
Definition at line 886 of file bin_mach0.c.
RzBinPlugin rz_bin_plugin_mach0 |
Definition at line 855 of file bin_mach0.c.