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 <ht_uu.h>
#include "../i/private.h"
#include "mach0/coresymbolication.h"
Go to the source code of this file.
Classes | |
struct | symbols_header_t |
struct | symbols_metadata_t |
Macros | |
#define | D if (0) |
#define | RZ_UUID_LENGTH 33 |
Typedefs | |
typedef struct symbols_header_t | SymbolsHeader |
typedef struct symbols_metadata_t | SymbolsMetadata |
Variables | |
RzBinPlugin | rz_bin_plugin_symbols |
RZ_API RzLibStruct | rizin_plugin |
#define D if (0) |
Definition at line 13 of file bin_symbols.c.
#define RZ_UUID_LENGTH 33 |
Definition at line 14 of file bin_symbols.c.
typedef struct symbols_header_t SymbolsHeader |
typedef struct symbols_metadata_t SymbolsMetadata |
Definition at line 316 of file bin_symbols.c.
|
static |
Definition at line 122 of file bin_symbols.c.
References rz_coresym_cache_element_section_t::name, NULL, rz_coresym_cache_element_section_t::paddr, RZ_NEW0, rz_str_ndup(), s, rz_coresym_cache_element_section_t::size, and rz_coresym_cache_element_section_t::vaddr.
Referenced by sections().
|
static |
Definition at line 140 of file bin_symbols.c.
References rz_coresym_cache_element_segment_t::name, NULL, rz_coresym_cache_element_segment_t::paddr, RZ_NEW0, rz_str_ndup(), s, rz_coresym_cache_element_segment_t::size, rz_coresym_cache_element_segment_t::vaddr, and rz_coresym_cache_element_segment_t::vsize.
Referenced by sections().
|
static |
Definition at line 158 of file bin_symbols.c.
References rz_bin_symbol_t::bind, rz_bin_symbol_t::dname, rz_bin_symbol_t::name, NULL, rz_bin_symbol_t::paddr, RZ_BIN_TYPE_FUNC_STR, rz_coresym_cache_element_pa2va(), RZ_NEW0, s, rz_bin_symbol_t::size, strdup(), rz_bin_symbol_t::type, and rz_bin_symbol_t::vaddr.
Referenced by symbols().
Definition at line 338 of file bin_symbols.c.
References b, and rz_buf_read_at().
|
static |
Definition at line 385 of file bin_symbols.c.
References rz_bin_object_t::bin_obj, rz_bin_file_t::o, and rz_coresym_cache_element_free().
|
static |
Definition at line 389 of file bin_symbols.c.
References rz_bin_object_t::bin_obj, rz_coresym_cache_element_t::binary_version, rz_coresym_cache_element_t::file_name, rz_coresym_cache_element_t::hdr, rz_coresym_cache_element_hdr_t::n_line_info, rz_coresym_cache_element_hdr_t::n_lined_symbols, rz_coresym_cache_element_hdr_t::n_sections, rz_coresym_cache_element_hdr_t::n_segments, rz_coresym_cache_element_hdr_t::n_symbols, rz_bin_file_t::o, p, pj_end(), pj_free(), pj_kn(), pj_ks(), pj_new(), pj_o(), pj_string(), rz_bin_file_t::rbin, rz_hex_bin2str(), rz_return_if_fail, RZ_UUID_LENGTH, rz_coresym_cache_element_hdr_t::size, rz_coresym_cache_element_hdr_t::uuid, and rz_coresym_cache_element_hdr_t::version.
Definition at line 320 of file bin_symbols.c.
References symbols_metadata_t::arch, rz_bin_info_t::arch, rz_bin_info_t::bclass, symbols_metadata_t::bits, rz_bin_info_t::bits, rz_bin_file_t::buf, rz_bin_info_t::file, rz_bin_file_t::file, rz_bin_info_t::has_va, NULL, rz_bin_info_t::os, parseMetadata(), RZ_NEW0, strdup(), rz_bin_info_t::subsystem, and rz_bin_info_t::type.
Referenced by lines().
|
static |
Definition at line 427 of file bin_symbols.c.
References addr, rz_bin_object_t::bin_obj, rz_coresym_cache_element_flc_t::col, rz_coresym_cache_element_flc_t::file, rz_bin_info_t::file, rz_coresym_cache_element_lined_symbol_t::flc, rz_coresym_cache_element_t::hdr, i, info(), rz_coresym_cache_element_flc_t::line, rz_coresym_cache_element_t::line_info, rz_coresym_cache_element_t::lined_symbols, rz_coresym_cache_element_hdr_t::n_line_info, rz_coresym_cache_element_hdr_t::n_lined_symbols, NULL, rz_bin_file_t::o, rz_coresym_cache_element_symbol_t::paddr, rz_bin_source_line_info_builder_build_and_fini(), rz_bin_source_line_info_builder_init(), rz_bin_source_line_info_builder_push_sample(), rz_coresym_cache_element_pa2va(), rz_return_val_if_fail, rz_coresym_cache_element_symbol_t::size, rz_coresym_cache_element_lined_symbol_t::sym, and ut64().
Referenced by bin_dwarf(), handleHints(), main(), mcopy(), pager_all_matches(), pager_splitlines(), rz_cons_flush(), rz_cons_less_str(), rz_cons_visual_write(), rz_core_bin_apply_dwarf(), rz_core_bin_dwarf_print_line_units(), rz_core_cmd_lines(), rz_core_cmd_lines_rzshell(), rz_core_fortune_get_random(), rz_core_visual_define(), rz_file_slurp_line(), rz_file_slurp_lines(), rz_file_slurp_lines_from_bottom(), rz_file_slurp_random_line_count(), rz_str_scale(), spp_io(), and tokenize_lines().
|
static |
Definition at line 252 of file bin_symbols.c.
References symbols_metadata_t::addr, rz_bin_object_t::bin_obj, symbols_metadata_t::bits, bytes, c0, calloc(), d, eprintf, file_name, free(), HEADER, symbols_metadata_t::namelen, NULL, parseDragons(), parseHeader(), parseMetadata(), rz_buf_read_at(), symbols_metadata_t::size, symbols_header_t::valid, and VERSION.
|
static |
Definition at line 181 of file bin_symbols.c.
References a, b, bits(), c0, D, d, eprintf, file_name, free(), L, malloc(), NULL, off, rz_buf_read_at(), rz_buf_size(), rz_coresym_cache_element_new(), RZ_LOG_ERROR, RZ_LOG_WARN, rz_read_le32(), sections(), symbols(), and ut64().
Referenced by load_buffer().
|
static |
Definition at line 44 of file bin_symbols.c.
References b, i, symbols_header_t::magic, rz_buf_read_at(), rz_read_le16(), rz_read_le32(), symbols_header_t::size, symbols_header_t::slotsize, symbols_header_t::unk0, symbols_header_t::unk1, symbols_header_t::uuid, symbols_header_t::valid, and symbols_header_t::version.
Referenced by load_buffer().
|
static |
Definition at line 87 of file bin_symbols.c.
References symbols_metadata_t::addr, symbols_metadata_t::arch, b, symbols_metadata_t::bits, symbols_metadata_t::cpu, symbols_metadata_t::cputype, delta, symbols_metadata_t::n_segments, symbols_metadata_t::namelen, off, rz_buf_read_at(), rz_read_le32(), symbols_metadata_t::size, symbols_metadata_t::subtype, subtypeString(), and typeString().
Referenced by info(), and load_buffer().
Definition at line 294 of file bin_symbols.c.
References rz_bin_object_t::bin_obj, bin_section_from_section(), bin_section_from_segment(), rz_coresym_cache_element_t::hdr, i, rz_coresym_cache_element_hdr_t::n_sections, rz_coresym_cache_element_hdr_t::n_segments, rz_bin_file_t::o, rz_bin_section_free(), rz_list_append(), rz_list_newf(), rz_return_val_if_fail, s, rz_coresym_cache_element_t::sections, and rz_coresym_cache_element_t::segments.
Referenced by parseDragons().
Definition at line 381 of file bin_symbols.c.
References UT64_MAX.
Definition at line 344 of file bin_symbols.c.
References rz_bin_object_t::bin_obj, bin_symbol_from_symbol(), found, rz_coresym_cache_element_t::hdr, i, rz_coresym_cache_element_t::lined_symbols, rz_coresym_cache_element_hdr_t::n_lined_symbols, rz_coresym_cache_element_hdr_t::n_symbols, rz_bin_file_t::o, rz_coresym_cache_element_symbol_t::paddr, rz_bin_symbol_free(), rz_list_append(), rz_list_newf(), rz_return_val_if_fail, s, and rz_coresym_cache_element_t::symbols.
Referenced by parseDragons().
Definition at line 62 of file bin_symbols.c.
Referenced by function_list_print_to_table(), parseMetadata(), print_stats(), rz_analysis_function_all_opcode_stat_handler(), rz_table_set_vcolumnsf(), rz_table_transpose(), and table_add_row_bool().
RZ_API RzLibStruct rizin_plugin |
Definition at line 474 of file bin_symbols.c.
RzBinPlugin rz_bin_plugin_symbols |
Definition at line 456 of file bin_symbols.c.