Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | rz_bin_le_obj_s |
Typedefs | |
typedef struct rz_bin_le_obj_s | rz_bin_le_obj_t |
typedef struct rz_bin_le_obj_s rz_bin_le_obj_t |
void rz_bin_le_free | ( | rz_bin_le_obj_t * | bin | ) |
Definition at line 795 of file le.c.
References free(), and rz_return_if_fail.
Referenced by destroy(), and rz_bin_le_new_buf().
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().