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 "nxo/nxo.h"
Go to the source code of this file.
Classes | |
struct | NROHeader |
Macros | |
#define | NRO_OFF(x) (sizeof(NXOStart) + rz_offsetof(NROHeader, x)) |
#define | NRO_OFFSET_MODMEMOFF rz_offsetof(NXOStart, mod_memoffset) |
Functions | |
static ut64 | baddr (RzBinFile *bf) |
static bool | check_buffer (RzBuffer *b) |
static bool | load_buffer (RzBinFile *bf, RzBinObject *obj, RzBuffer *b, Sdb *sdb) |
static RzBinAddr * | binsym (RzBinFile *bf, RzBinSpecialSymbol type) |
static RzList * | entries (RzBinFile *bf) |
static Sdb * | get_sdb (RzBinFile *bf) |
static RzList * | maps (RzBinFile *bf) |
static RzList * | sections (RzBinFile *bf) |
static RzList * | symbols (RzBinFile *bf) |
static RzList * | imports (RzBinFile *bf) |
static RzList * | libs (RzBinFile *bf) |
static RzBinInfo * | info (RzBinFile *bf) |
Variables | |
RzBinPlugin | rz_bin_plugin_nro |
RZ_API RzLibStruct | rizin_plugin |
#define NRO_OFF | ( | x | ) | (sizeof(NXOStart) + rz_offsetof(NROHeader, x)) |
#define NRO_OFFSET_MODMEMOFF rz_offsetof(NXOStart, mod_memoffset) |
Definition at line 30 of file bin_nro.c.
References rz_bin_file_t::buf, NRO_OFFSET_MODMEMOFF, and rz_buf_read_le32_at.
Referenced by entries(), load_buffer(), maps(), and sections().
|
static |
Definition at line 43 of file bin_nro.c.
References b, fileType(), NRO_OFF, NULL, and rz_buf_read_at().
Definition at line 77 of file bin_nro.c.
References baddr(), rz_list_t::free, free(), NULL, rz_bin_addr_t::paddr, rz_list_append(), rz_list_new(), RZ_NEW0, and rz_bin_addr_t::vaddr.
Definition at line 92 of file bin_nro.c.
References rz_bin_file_t::sdb, sdb_new0(), sdb_ns_set(), sdb_num_set(), and sdb_set().
Definition at line 281 of file bin_nro.c.
References rz_bin_object_t::bin_obj, NULL, and rz_bin_file_t::o.
Definition at line 294 of file bin_nro.c.
References rz_bin_info_t::arch, rz_bin_info_t::bclass, rz_bin_info_t::big_endian, rz_bin_info_t::bits, rz_bin_file_t::buf, rz_bin_info_t::dbg_info, rz_bin_info_t::file, rz_bin_file_t::file, fileType(), rz_bin_info_t::has_va, rz_bin_info_t::machine, NRO_OFF, NULL, rz_bin_info_t::os, rz_bin_info_t::rclass, rz_buf_read_at(), RZ_NEW0, strdup(), rz_bin_info_t::subsystem, and rz_bin_info_t::type.
|
static |
Definition at line 51 of file bin_nro.c.
References b, baddr(), rz_bin_object_t::bin_obj, free(), NRO_OFFSET_MODMEMOFF, parseMod(), rz_bin_import_free(), rz_bin_symbol_free(), rz_buf_read_le32_at, rz_list_newf(), RZ_NEW0, and ut64().
Definition at line 104 of file bin_nro.c.
References b, baddr(), rz_bin_file_t::buf, free(), map(), NRO_OFF, NULL, rz_bin_map_free(), rz_buf_read_le32_at, rz_buf_size(), rz_list_append(), rz_list_free(), rz_list_newf(), RZ_LOG_ERROR, RZ_NEW0, RZ_PERM_R, RZ_PERM_RW, RZ_PERM_RX, strdup(), autogen_x86imm::tmp, and ut64().
Referenced by sections().
Definition at line 212 of file bin_nro.c.
References baddr(), rz_bin_file_t::buf, free(), maps(), rz_bin_section_t::name, NRO_OFFSET_MODMEMOFF, NULL, rz_bin_section_t::paddr, rz_bin_section_t::perm, rz_bin_section_free(), rz_bin_sections_of_maps(), rz_buf_read_le32_at, rz_buf_size(), rz_list_append(), rz_list_free(), rz_list_join(), rz_list_newf(), RZ_LOG_ERROR, RZ_NEW0, RZ_PERM_R, rz_bin_section_t::size, strdup(), ut64(), rz_bin_section_t::vaddr, and rz_bin_section_t::vsize.
Definition at line 272 of file bin_nro.c.
References rz_bin_object_t::bin_obj, NULL, and rz_bin_file_t::o.
RZ_API RzLibStruct rizin_plugin |
RzBinPlugin rz_bin_plugin_nro |