Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Macros | |
#define | RZ_CS_EL_OFF_SEGS 0x58 |
#define | RZ_CS_EL_SIZE_SEG 0x20 |
#define | RZ_CS_EL_SIZE_SECT_64 0x18 |
#define | RZ_CS_EL_SIZE_SECT_32 0x10 |
#define | RZ_CS_EL_SIZE_SYM 0x18 |
#define | RZ_CS_EL_SIZE_LSYM 0x24 |
#define | RZ_CS_EL_SIZE_LINFO 0x14 |
#define RZ_CS_EL_OFF_SEGS 0x58 |
Definition at line 8 of file coresymbolication.c.
#define RZ_CS_EL_SIZE_LINFO 0x14 |
Definition at line 14 of file coresymbolication.c.
#define RZ_CS_EL_SIZE_LSYM 0x24 |
Definition at line 13 of file coresymbolication.c.
#define RZ_CS_EL_SIZE_SECT_32 0x10 |
Definition at line 11 of file coresymbolication.c.
#define RZ_CS_EL_SIZE_SECT_64 0x18 |
Definition at line 10 of file coresymbolication.c.
#define RZ_CS_EL_SIZE_SEG 0x20 |
Definition at line 9 of file coresymbolication.c.
#define RZ_CS_EL_SIZE_SYM 0x18 |
Definition at line 12 of file coresymbolication.c.
|
static |
Definition at line 37 of file coresymbolication.c.
References rz_coresym_cache_element_flc_t::file, and free().
Referenced by rz_coresym_cache_element_line_info_fini(), and rz_coresym_cache_element_lined_symbol_fini().
RZ_API void rz_coresym_cache_element_free | ( | RzCoreSymCacheElement * | element | ) |
Definition at line 63 of file coresymbolication.c.
References rz_coresym_cache_element_t::binary_version, rz_coresym_cache_element_t::file_name, free(), rz_coresym_cache_element_t::hdr, i, 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, 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_coresym_cache_element_line_info_fini(), rz_coresym_cache_element_lined_symbol_fini(), rz_coresym_cache_element_section_fini(), rz_coresym_cache_element_segment_fini(), rz_coresym_cache_element_symbol_fini(), rz_coresym_cache_element_t::sections, rz_coresym_cache_element_t::segments, and rz_coresym_cache_element_t::symbols.
Referenced by destroy(), and rz_coresym_cache_element_new().
|
static |
Definition at line 16 of file coresymbolication.c.
References free(), NULL, off, rz_buf_fread_at(), and RZ_NEW0.
Referenced by rz_coresym_cache_element_new().
|
static |
Definition at line 57 of file coresymbolication.c.
References setup::line, and rz_coresym_cache_element_flc_fini().
Referenced by rz_coresym_cache_element_free().
|
static |
Definition at line 50 of file coresymbolication.c.
References rz_coresym_cache_element_lined_symbol_t::flc, rz_coresym_cache_element_flc_fini(), rz_coresym_cache_element_symbol_fini(), and rz_coresym_cache_element_lined_symbol_t::sym.
Referenced by rz_coresym_cache_element_free().
RZ_API RzCoreSymCacheElement* rz_coresym_cache_element_new | ( | RzBinFile * | bf, |
RzBuffer * | buf, | ||
ut64 | off, | ||
int | bits, | ||
RZ_OWN char * | file_name | ||
) |
Definition at line 139 of file coresymbolication.c.
References b, rz_coresym_cache_element_t::binary_version, bits(), rz_coresym_cache_element_flc_t::col, test_evm::end, rz_coresym_cache_element_flc_t::file, rz_bin_info_t::file, rz_coresym_cache_element_t::file_name, file_name, rz_coresym_cache_element_hdr_t::file_name_off, rz_coresym_cache_element_lined_symbol_t::flc, free(), rz_coresym_cache_element_t::hdr, i, if(), info(), rz_coresym_cache_element_flc_t::line, rz_coresym_cache_element_t::line_info, rz_coresym_cache_element_t::lined_symbols, malloc(), rz_coresym_cache_element_symbol_t::mangled_name, 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_coresym_cache_element_segment_t::name, rz_coresym_cache_element_section_t::name, rz_coresym_cache_element_symbol_t::name, NULL, off, rz_coresym_cache_element_segment_t::paddr, rz_coresym_cache_element_section_t::paddr, rz_coresym_cache_element_symbol_t::paddr, rz_buf_read_at(), rz_buf_size(), rz_coresym_cache_element_free(), rz_coresym_cache_element_header_new(), RZ_CS_EL_OFF_SEGS, RZ_CS_EL_SIZE_LINFO, RZ_CS_EL_SIZE_LSYM, RZ_CS_EL_SIZE_SECT_32, RZ_CS_EL_SIZE_SECT_64, RZ_CS_EL_SIZE_SEG, RZ_CS_EL_SIZE_SYM, RZ_LOG_ERROR, RZ_NEW0, RZ_NEWS0, rz_read_ble(), rz_read_le32(), rz_read_le64(), rz_coresym_cache_element_t::sections, rz_coresym_cache_element_t::segments, rz_coresym_cache_element_hdr_t::size, rz_coresym_cache_element_segment_t::size, rz_coresym_cache_element_section_t::size, rz_coresym_cache_element_symbol_t::size, st32, str_dup_safe(), str_dup_safe_fixed(), strdup(), rz_coresym_cache_element_lined_symbol_t::sym, rz_coresym_cache_element_t::symbols, rz_coresym_cache_element_symbol_t::unk1, rz_coresym_cache_element_symbol_t::unk2, ut64(), rz_coresym_cache_element_segment_t::vaddr, rz_coresym_cache_element_section_t::vaddr, rz_coresym_cache_element_hdr_t::version, rz_coresym_cache_element_hdr_t::version_off, and rz_coresym_cache_element_segment_t::vsize.
Referenced by parseDragons().
RZ_API ut64 rz_coresym_cache_element_pa2va | ( | RzCoreSymCacheElement * | element, |
ut64 | pa | ||
) |
Definition at line 104 of file coresymbolication.c.
References rz_coresym_cache_element_t::hdr, i, rz_coresym_cache_element_hdr_t::n_segments, rz_coresym_cache_element_segment_t::paddr, rz_coresym_cache_element_t::segments, rz_coresym_cache_element_segment_t::size, and rz_coresym_cache_element_segment_t::vaddr.
Referenced by bin_symbol_from_symbol(), and lines().
|
static |
Definition at line 31 of file coresymbolication.c.
References free(), and rz_coresym_cache_element_section_t::name.
Referenced by rz_coresym_cache_element_free().
|
static |
Definition at line 25 of file coresymbolication.c.
References free(), and rz_coresym_cache_element_segment_t::name.
Referenced by rz_coresym_cache_element_free().
|
static |
Definition at line 43 of file coresymbolication.c.
References free(), rz_coresym_cache_element_symbol_t::mangled_name, and rz_coresym_cache_element_symbol_t::name.
Referenced by rz_coresym_cache_element_free(), and rz_coresym_cache_element_lined_symbol_fini().
Definition at line 118 of file coresymbolication.c.
References b, test_evm::end, len, NULL, rz_str_ndup(), rz_str_nlen(), and cmd_descs_generate::str.
Referenced by rz_coresym_cache_element_new().
|
static |
Definition at line 128 of file coresymbolication.c.
References b, calloc(), test_evm::end, len, NULL, rz_str_ncpy(), and cmd_descs_generate::str.
Referenced by rz_coresym_cache_element_new().