Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | OMF_record_handler |
struct | OMF_multi_datas |
struct | OMF_DATA |
struct | OMF_segment |
struct | OMF_symbol |
struct | rz_bin_omf_obj |
Macros | |
#define | OMF_BASE_ADDR 0x1000 |
Typedefs | |
typedef struct OMF_record_handler | OMF_record_handler |
typedef struct OMF_DATA | OMF_data |
Functions | |
bool | rz_bin_checksum_omf_ok (const ut8 *buf, ut64 buf_size) |
rz_bin_omf_obj * | rz_bin_internal_omf_load (const ut8 *buf, ut64 size) |
void | rz_bin_free_all_omf_obj (rz_bin_omf_obj *obj) |
bool | rz_bin_omf_get_entry (rz_bin_omf_obj *obj, RzBinAddr *addr) |
int | rz_bin_omf_get_bits (rz_bin_omf_obj *obj) |
int | rz_bin_omf_send_sections (RzList *list, OMF_segment *section, rz_bin_omf_obj *obj) |
ut64 | rz_bin_omf_get_paddr_sym (rz_bin_omf_obj *obj, OMF_symbol *sym) |
ut64 | rz_bin_omf_get_vaddr_sym (rz_bin_omf_obj *obj, OMF_symbol *sym) |
typedef struct OMF_record_handler OMF_record_handler |
Definition at line 30 of file omf.c.
References buf_size, RZ_LOG_ERROR, rz_read_le16(), and true.
Referenced by check_buffer(), and load_record_omf().
void rz_bin_free_all_omf_obj | ( | rz_bin_omf_obj * | obj | ) |
Definition at line 665 of file omf.c.
References free(), free_all_omf_names(), free_all_omf_records(), free_all_omf_sections(), free_all_omf_symbols(), rz_bin_omf_obj::names, rz_bin_omf_obj::records, rz_bin_omf_obj::sections, and rz_bin_omf_obj::symbols.
Referenced by destroy(), and rz_bin_internal_omf_load().
rz_bin_omf_obj* rz_bin_internal_omf_load | ( | const ut8 * | buf, |
ut64 | size | ||
) |
Definition at line 683 of file omf.c.
References free_all_omf_records(), get_omf_infos(), load_all_omf_records(), NULL, rz_bin_free_all_omf_obj(), and RZ_NEW0.
Referenced by load_buffer().
int rz_bin_omf_get_bits | ( | rz_bin_omf_obj * | obj | ) |
Definition at line 731 of file omf.c.
References OMF_segment::bits, and rz_bin_omf_obj::sections.
Referenced by info().
bool rz_bin_omf_get_entry | ( | rz_bin_omf_obj * | obj, |
RzBinAddr * | addr | ||
) |
Definition at line 701 of file omf.c.
References addr, OMF_segment::data, OMF_symbol::name, rz_bin_omf_obj::nb_section, OMF_DATA::next, OMF_DATA::offset, OMF_symbol::offset, OMF_BASE_ADDR, OMF_DATA::paddr, RZ_LOG_ERROR, rz_bin_omf_obj::sections, OMF_symbol::seg_idx, OMF_DATA::size, rz_bin_omf_obj::symbols, and OMF_segment::vaddr.
Referenced by entries().
ut64 rz_bin_omf_get_paddr_sym | ( | rz_bin_omf_obj * | obj, |
OMF_symbol * | sym | ||
) |
Definition at line 774 of file omf.c.
References OMF_segment::data, rz_bin_omf_obj::nb_section, OMF_DATA::next, OMF_DATA::offset, OMF_symbol::offset, OMF_DATA::paddr, rz_bin_omf_obj::sections, OMF_symbol::seg_idx, OMF_DATA::size, and ut64().
Referenced by symbols().
ut64 rz_bin_omf_get_vaddr_sym | ( | rz_bin_omf_obj * | obj, |
OMF_symbol * | sym | ||
) |
Definition at line 797 of file omf.c.
References OMF_symbol::name, rz_bin_omf_obj::nb_section, OMF_symbol::offset, OMF_BASE_ADDR, RZ_LOG_ERROR, rz_bin_omf_obj::sections, OMF_symbol::seg_idx, and OMF_segment::vaddr.
Referenced by symbols().
int rz_bin_omf_send_sections | ( | RzList * | list, |
OMF_segment * | section, | ||
rz_bin_omf_obj * | obj | ||
) |
Definition at line 746 of file omf.c.
References list(), rz_bin_omf_obj::names, rz_bin_omf_obj::nb_name, OMF_DATA::next, OMF_DATA::offset, OMF_BASE_ADDR, OMF_DATA::paddr, rz_list_append(), RZ_NEW0, RZ_PERM_RWX, rz_str_newf(), and OMF_DATA::size.
Referenced by sections().