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_io.h>
#include "bflt/bflt.h"
Go to the source code of this file.
Macros | |
#define | VFILE_NAME_PATCHED "patched" |
Functions | |
static bool | load_buffer (RzBinFile *bf, RzBinObject *obj, RzBuffer *buf, Sdb *sdb) |
static RzList * | entries (RzBinFile *bf) |
static RzList * | maps (RzBinFile *bf) |
static RzList * | sections (RzBinFile *bf) |
static RzList * | virtual_files (RzBinFile *bf) |
static void | convert_relocs (RzBfltObj *bin, RzList *out, RzVector *relocs) |
static RzList * | relocs (RzBinFile *bf) |
static RzBinInfo * | info (RzBinFile *bf) |
static bool | check_buffer (RzBuffer *buf) |
static void | destroy (RzBinFile *bf) |
static RzList * | strings (RzBinFile *bf) |
Variables | |
RzBinPlugin | rz_bin_plugin_bflt |
RZ_API RzLibStruct | rizin_plugin |
#define VFILE_NAME_PATCHED "patched" |
Definition at line 12 of file bin_bflt.c.
Definition at line 241 of file bin_bflt.c.
References r, rz_buf_read_at(), and autogen_x86imm::tmp.
Definition at line 185 of file bin_bflt.c.
References br, out, r, relocs(), rz_bflt_paddr_to_vaddr(), RZ_BIN_RELOC_32, rz_list_push(), RZ_NEW0, and rz_vector_foreach.
Referenced by relocs().
|
static |
Definition at line 247 of file bin_bflt.c.
References rz_bin_object_t::bin_obj, rz_bin_file_t::o, and rz_bflt_free().
Definition at line 19 of file bin_bflt.c.
References rz_bin_object_t::bin_obj, free(), NULL, rz_bin_file_t::o, rz_bflt_get_entry(), rz_list_append(), rz_list_free(), and rz_list_newf().
Definition at line 215 of file bin_bflt.c.
References rz_bin_info_t::arch, rz_bin_info_t::bclass, rz_bflt_obj_t::big_endian, rz_bin_info_t::big_endian, rz_bin_object_t::bin_obj, rz_bin_info_t::bits, rz_bin_info_t::dbg_info, rz_bin_info_t::file, rz_bin_file_t::file, rz_bin_info_t::has_pi, rz_bin_info_t::has_va, if(), rz_bin_info_t::machine, NULL, rz_bin_file_t::o, rz_bin_info_t::os, rz_bin_info_t::rclass, RZ_NEW0, strdup(), rz_bin_info_t::subsystem, and rz_bin_info_t::type.
|
static |
Definition at line 14 of file bin_bflt.c.
References rz_bin_file_load_options_t::baseaddr, rz_bin_file_load_options_t::big_endian, rz_bin_object_t::bin_obj, rz_bin_object_t::opts, rz_bin_file_load_options_t::patch_relocs, and rz_bflt_new_buf().
Definition at line 36 of file bin_bflt.c.
References rz_bin_object_t::bin_obj, rz_bflt_obj_t::buf_patched, rz_bflt_hdr_t::data_end, rz_bflt_hdr_t::data_start, rz_bflt_obj_t::hdr, map(), NULL, rz_bin_file_t::o, rz_bflt_get_data_base(), rz_bflt_get_data_vsize(), rz_bflt_get_text_base(), rz_bin_map_free(), rz_list_append(), rz_list_free(), rz_list_newf(), RZ_NEW0, RZ_PERM_RWX, strdup(), and VFILE_NAME_PATCHED.
Definition at line 203 of file bin_bflt.c.
References rz_bin_object_t::bin_obj, convert_relocs(), free(), rz_bflt_obj_t::got_relocs, list(), NULL, rz_bin_file_t::o, rz_bflt_obj_t::relocs, rz_list_free(), and rz_list_newf().
Referenced by convert_relocs().
Definition at line 74 of file bin_bflt.c.
References BFLT_HDR_SIZE, rz_bin_object_t::bin_obj, rz_bflt_hdr_t::bss_end, rz_bflt_hdr_t::data_end, rz_bflt_hdr_t::data_start, rz_bflt_obj_t::hdr, rz_bin_section_t::is_data, rz_bin_section_t::is_segment, rz_bin_section_t::name, NULL, rz_bin_file_t::o, rz_bin_section_t::paddr, rz_bin_section_t::perm, rz_bflt_get_data_base(), rz_bflt_get_data_vsize(), rz_bflt_get_text_base(), rz_bin_section_free(), rz_list_free(), rz_list_newf(), rz_list_push(), RZ_NEW0, RZ_PERM_RWX, rz_bin_section_t::size, strdup(), rz_bin_section_t::vaddr, and rz_bin_section_t::vsize.
Definition at line 251 of file bin_bflt.c.
References rz_bin_file_strings().
Definition at line 167 of file bin_bflt.c.
References rz_bin_object_t::bin_obj, rz_bin_virtual_file_t::buf, rz_bflt_obj_t::buf_patched, rz_bin_virtual_file_t::name, NULL, rz_bin_file_t::o, r, rz_bin_virtual_file_free(), rz_list_newf(), rz_list_push(), RZ_NEW0, strdup(), and VFILE_NAME_PATCHED.
RZ_API RzLibStruct rizin_plugin |
Definition at line 272 of file bin_bflt.c.
RzBinPlugin rz_bin_plugin_bflt |
Definition at line 255 of file bin_bflt.c.