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 "../format/p9/p9bin.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) |
Functions | |
static bool | check_buffer (RzBuffer *buf) |
static bool | load_buffer (RzBinFile *bf, RzBinObject *obj, RzBuffer *b, Sdb *sdb) |
static void | destroy (RzBinFile *bf) |
static ut64 | baddr (RzBinFile *bf) |
static RzBinAddr * | binsym (RzBinFile *bf, RzBinSpecialSymbol type) |
static RzList * | entries (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) |
static ut64 | size (RzBinFile *bf) |
static RzBuffer * | create (RzBin *bin, const ut8 *code, int codelen, const ut8 *data, int datalen, RzBinArchOptions *opt) |
Variables | |
RzBinPlugin | rz_bin_plugin_p9 |
RZ_API RzLibStruct | rizin_plugin |
#define D | ( | x | ) | rz_buf_append_ut32(buf, x) |
|
static |
Definition at line 11 of file bin_p9.c.
References NULL, and rz_bin_p9_get_arch().
Referenced by load_buffer().
|
static |
Definition at line 237 of file bin_p9.c.
References B, D, I_MAGIC, NULL, and rz_buf_new_with_bytes().
|
static |
Definition at line 19 of file bin_p9.c.
References rz_bin_object_t::bin_obj, rz_bin_file_t::o, and rz_buf_free().
Definition at line 31 of file bin_p9.c.
References 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 171 of file bin_p9.c.
References rz_bin_info_t::arch, rz_bin_info_t::bclass, rz_bin_info_t::big_endian, rz_bin_info_t::bits, bits(), rz_bin_file_t::buf, rz_bin_info_t::dbg_info, rz_bin_info_t::file, rz_bin_file_t::file, rz_bin_info_t::has_va, rz_bin_info_t::machine, NULL, rz_bin_info_t::os, rz_bin_info_t::rclass, rz_bin_p9_get_arch(), RZ_NEW0, rz_sys_arch_str(), strdup(), rz_bin_info_t::subsystem, and rz_bin_info_t::type.
Referenced by size().
|
static |
Definition at line 47 of file bin_p9.c.
References rz_bin_file_t::buf, free(), rz_bin_object_t::info, rz_bin_section_t::name, NULL, rz_bin_file_t::o, rz_bin_section_t::paddr, rz_bin_section_t::perm, rz_buf_read_le32_at, rz_buf_size(), rz_list_append(), rz_list_free(), rz_list_newf(), RZ_NEW0, RZ_PERM_R, RZ_PERM_RW, RZ_PERM_RX, rz_bin_section_t::size, strdup(), rz_bin_section_t::vaddr, and rz_bin_section_t::vsize.
Definition at line 196 of file bin_p9.c.
References rz_bin_file_t::buf, info(), rz_bin_object_t::info, rz_bin_file_t::o, rz_buf_read_le32_at, rz_buf_size(), and create_tags_rz::text.
RZ_API RzLibStruct rizin_plugin |
RzBinPlugin rz_bin_plugin_p9 |