Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
|
static |
Definition at line 268 of file le.c.
References rz_bin_section_t::bits, bin::buf, h, i, rz_bin_section_t::name, LE_object_page_entry_s::offset, rz_bin_section_t::perm, rz_list_append(), RZ_NEW0, rz_return_if_fail, rz_str_newf(), s, LE_object_page_entry_s::size, and ut64().
Referenced by rz_bin_le_get_sections().
const char* le_get_arch | ( | rz_bin_le_obj_t * | bin | ) |
const char* le_get_cpu_type | ( | rz_bin_le_obj_t * | bin | ) |
RzList* le_get_entries | ( | rz_bin_le_obj_t * | bin | ) |
Definition at line 97 of file le.c.
References bin::buf, CALLGATE, e, ENTRY16, ENTRY32, ENTRY_PARAM_COUNT_MASK, ENTRY_PARAMETER_TYPING_PRESENT, FORWARDER, free(), header, i, NULL, off, PFMT64x, rz_buf_read8_offset, rz_buf_read_at(), rz_buf_read_le16_offset, rz_list_append(), rz_list_newf(), rz_str_newf(), strdup(), UNUSED_ENTRY, ut64(), and UT64_MAX.
Referenced by rz_bin_le_get_relocs(), and rz_bin_le_get_symbols().
char* le_get_modname_by_ord | ( | rz_bin_le_obj_t * | bin, |
ut32 | ordinal | ||
) |
const char* le_get_module_type | ( | rz_bin_le_obj_t * | bin | ) |
Definition at line 7 of file le.c.
References M_TYPE_DLL, M_TYPE_EXE, M_TYPE_MASK, M_TYPE_PDD, and M_TYPE_VDD.
Referenced by rz_bin_le_new_buf().
const char* le_get_os_type | ( | rz_bin_le_obj_t * | bin | ) |
|
static |
Definition at line 77 of file le.c.
References bin::buf, le_read_nonnull_str_at(), name, rz_bin_symbol_t::name, NULL, rz_bin_symbol_t::ordinal, rz_bin_symbol_free(), rz_buf_read_le16_offset, and RZ_NEW0.
Referenced by le_get_symbols_at().
|
static |
Definition at line 169 of file le.c.
References rz_bin_symbol_t::bind, test_evm::end, le_get_symbol(), n, NULL, rz_bin_symbol_t::ordinal, RZ_BIN_BIND_GLOBAL_STR, rz_bin_symbol_free(), RZ_BIN_TYPE_FUNC_STR, rz_list_append(), rz_list_get_n(), rz_num_get(), rz_bin_symbol_t::type, and rz_bin_symbol_t::vaddr.
Referenced by rz_bin_le_get_symbols().
|
static |
Definition at line 775 of file le.c.
References read_le_header_aux(), rz_buf_read_at(), rz_buf_read_le16_at, RZ_LOG_ERROR, RZ_NEW0, and autogen_x86imm::tmp.
Referenced by rz_bin_le_new_buf().
Definition at line 60 of file le.c.
References calloc(), NULL, rz_buf_read8_at(), rz_buf_read_at(), cmd_descs_generate::str, and ut64().
Referenced by le_get_modname_by_ord(), le_get_symbol(), rz_bin_le_get_imports(), rz_bin_le_get_libs(), rz_bin_le_get_relocs(), and rz_bin_le_new_buf().
|
static |
Definition at line 724 of file le.c.
References rz_buf_read_at(), rz_buf_read_le16_offset, rz_buf_read_le32_offset, and ut64().
Referenced by le_init_header().
void rz_bin_le_free | ( | rz_bin_le_obj_t * | bin | ) |
RzList* rz_bin_le_get_entrypoints | ( | rz_bin_le_obj_t * | bin | ) |
Definition at line 229 of file le.c.
References free(), NULL, rz_list_append(), rz_list_newf(), RZ_NEW0, and ut64().
Referenced by entries().
RzList* rz_bin_le_get_imports | ( | rz_bin_le_obj_t * | bin | ) |
Definition at line 205 of file le.c.
References bin::buf, test_evm::end, h, le_read_nonnull_str_at(), rz_bin_import_t::name, NULL, rz_bin_import_free(), RZ_BIN_TYPE_FUNC_STR, rz_list_append(), rz_list_newf(), RZ_NEW0, rz_bin_import_t::type, and ut64().
Referenced by imports().
RzList* rz_bin_le_get_libs | ( | rz_bin_le_obj_t * | bin | ) |
Definition at line 245 of file le.c.
References bin::buf, test_evm::end, free(), h, le_read_nonnull_str_at(), NULL, rz_list_append(), rz_list_newf(), ut64(), and while().
Referenced by libs().
RzList* rz_bin_le_get_relocs | ( | rz_bin_le_obj_t * | bin | ) |
Definition at line 453 of file le.c.
References rz_bin_reloc_t::addend, bin::buf, BYTEFIXUP, test_evm::end, entries(), F_SOURCE_LIST, F_SOURCE_TYPE_MASK, F_TARGET_ADD32, F_TARGET_ADDITIVE, F_TARGET_CHAIN, F_TARGET_OFF32, F_TARGET_ORD16, F_TARGET_ORD8, F_TARGET_TYPE_MASK, free(), h, header, if(), rz_bin_reloc_t::import, IMPORTNAME, IMPORTORD, INTERNAL, INTERNALENTRY, le_get_entries(), le_get_modname_by_ord(), le_read_nonnull_str_at(), rz_bin_import_t::name, NULL, off, OFFSET16, OFFSET32, rz_bin_import_t::ordinal, rz_bin_section_t::paddr, rz_bin_reloc_t::paddr, POINTER32, POINTER48, repeat(), rz_bin_import_free(), rz_bin_le_get_sections(), RZ_BIN_RELOC_16, RZ_BIN_RELOC_32, RZ_BIN_RELOC_8, rz_bin_reloc_free(), rz_buf_read8_at(), rz_buf_read_at(), rz_list_append(), rz_list_free(), rz_list_get_n(), rz_list_newf(), RZ_LOG_WARN, RZ_NEW0, rz_str_newf(), sections(), SELECTOR16, SELFOFFSET32, source, autogen_x86imm::tmp, rz_bin_reloc_t::type, ut64(), ut8, rz_bin_section_t::vaddr, rz_bin_reloc_t::vaddr, w0, and w1.
Referenced by relocs().
RzList* rz_bin_le_get_sections | ( | rz_bin_le_obj_t * | bin | ) |
Definition at line 338 of file le.c.
References __create_iter_sections(), rz_bin_section_t::bits, bin::buf, LE_object_page_entry_s::flags, h, i, if(), rz_bin_section_t::is_data, rz_bin_section_t::name, next_idx(), NULL, O_BIG_BIT, O_EXECUTABLE, O_READABLE, O_RESOURCE, O_WRITABLE, LE_object_page_entry_s::offset, P_COMPRESSED, P_ITERATED, P_ZEROED, rz_bin_section_t::perm, rz_bin_section_free(), rz_buf_read_be32_at, rz_buf_read_le16_offset, rz_buf_read_le32_offset, rz_list_append(), rz_list_newf(), RZ_LOG_WARN, RZ_NEW0, RZ_PERM_R, RZ_PERM_W, RZ_PERM_X, rz_str_newf(), RZ_SYS_BITS_16, RZ_SYS_BITS_32, s, LE_object_page_entry_s::size, UT32_MAX, ut64(), rz_bin_section_t::vaddr, and rz_bin_section_t::vsize.
Referenced by rz_bin_le_get_relocs(), and sections().
RzList* rz_bin_le_get_symbols | ( | rz_bin_le_obj_t * | bin | ) |
Definition at line 191 of file le.c.
References test_evm::end, entries(), h, le_get_entries(), le_get_symbols_at(), rz_bin_symbol_free(), rz_list_free(), rz_list_newf(), and ut64().
Referenced by symbols().
rz_bin_le_obj_t* rz_bin_le_new_buf | ( | RzBuffer * | buf | ) |
Definition at line 803 of file le.c.
References bin::buf, calloc(), LE_object_entry_s::flags, h, i, le_get_arch(), le_get_cpu_type(), le_get_module_type(), le_get_os_type(), le_init_header(), le_read_nonnull_str_at(), NULL, LE_object_entry_s::page_tbl_entries, LE_object_entry_s::page_tbl_idx, LE_object_entry_s::reloc_base_addr, LE_object_entry_s::reserved, rz_bin_le_free(), rz_buf_read_le32_offset, RZ_NEW0, ut64(), and LE_object_entry_s::virtual_size.
Referenced by load_buffer().