Rizin
unix-like reverse engineering framework and cli tools
|
#include "omf.h"
Go to the source code of this file.
|
static |
Definition at line 454 of file omf.c.
References rz_bin_omf_obj::records, autogen_x86imm::tmp, and type.
Referenced by get_omf_infos().
|
static |
Definition at line 441 of file omf.c.
References rz_bin_omf_obj::records, autogen_x86imm::tmp, and type.
Referenced by get_omf_infos().
|
static |
Definition at line 477 of file omf.c.
References OMF_multi_datas::elems, get_next_omf_record_type(), rz_bin_omf_obj::names, NULL, OMF_LNAMES, rz_bin_omf_obj::records, strdup(), and autogen_x86imm::tmp.
Referenced by get_omf_infos().
|
static |
Definition at line 655 of file omf.c.
References rz_bin_omf_obj::names, and RZ_FREE.
Referenced by rz_bin_free_all_omf_obj().
|
static |
Definition at line 609 of file omf.c.
References free_lname(), free_pubdef(), NULL, OMF_LNAMES, OMF_PUBDEF, rz_bin_omf_obj::records, RZ_FREE, autogen_x86imm::tmp, and type.
Referenced by rz_bin_free_all_omf_obj(), and rz_bin_internal_omf_load().
|
static |
Definition at line 628 of file omf.c.
References OMF_segment::data, OMF_DATA::next, RZ_FREE, and rz_bin_omf_obj::sections.
Referenced by rz_bin_free_all_omf_obj().
|
static |
Definition at line 644 of file omf.c.
References OMF_symbol::name, RZ_FREE, and rz_bin_omf_obj::symbols.
Referenced by rz_bin_free_all_omf_obj().
|
static |
Definition at line 71 of file omf.c.
References OMF_multi_datas::elems, and RZ_FREE.
Referenced by free_all_omf_records(), and load_omf_lnames().
|
static |
Definition at line 599 of file omf.c.
References OMF_multi_datas::elems, and RZ_FREE.
Referenced by free_all_omf_records().
|
static |
Definition at line 467 of file omf.c.
References NULL, autogen_x86imm::tmp, and type.
Referenced by cpy_omf_names(), get_omf_data_info(), get_omf_section_info(), and get_omf_symbol_info().
|
static |
Definition at line 541 of file omf.c.
References OMF_segment::data, get_next_omf_record_type(), rz_bin_omf_obj::nb_section, OMF_DATA::next, NULL, OMF_LEDATA, rz_bin_omf_obj::records, RZ_LOG_ERROR, rz_bin_omf_obj::sections, and autogen_x86imm::tmp.
Referenced by get_omf_infos().
|
static |
Definition at line 565 of file omf.c.
References count_omf_multi_record_type(), count_omf_record_type(), cpy_omf_names(), get_omf_data_info(), get_omf_section_info(), get_omf_symbol_info(), rz_bin_omf_obj::names, rz_bin_omf_obj::nb_name, rz_bin_omf_obj::nb_section, rz_bin_omf_obj::nb_symbol, OMF_LNAMES, OMF_PUBDEF, OMF_SEGDEF, RZ_NEWS0, rz_bin_omf_obj::sections, and rz_bin_omf_obj::symbols.
Referenced by rz_bin_internal_omf_load().
|
static |
Definition at line 499 of file omf.c.
References get_next_omf_record_type(), NULL, OMF_SEGDEF, rz_bin_omf_obj::records, rz_bin_omf_obj::sections, OMF_segment::size, autogen_x86imm::tmp, and OMF_segment::vaddr.
Referenced by get_omf_infos().
|
static |
Definition at line 518 of file omf.c.
References get_next_omf_record_type(), memcpy(), OMF_symbol::name, OMF_PUBDEF, rz_bin_omf_obj::records, RZ_NEW0, strdup(), rz_bin_omf_obj::symbols, symbols(), and autogen_x86imm::tmp.
Referenced by get_omf_infos().
Definition at line 7 of file omf.c.
References OMF_ALIAS, OMF_BAKPAT, OMF_BAKPAT32, OMF_CEXTDEF, OMF_COMDAT, OMF_COMDAT32, OMF_COMDEF, OMF_COMENT, OMF_EXTDEF, OMF_FIXUPP, OMF_FIXUPP32, OMF_GRPDEF, OMF_LCOMDEF, OMF_LEDATA, OMF_LEDATA32, OMF_LEXTDEF, OMF_LHEADR, OMF_LIDATA, OMF_LIDATA32, OMF_LINNUM, OMF_LINNUM32, OMF_LINSYM, OMF_LINSYM32, OMF_LLNAMES, OMF_LNAMES, OMF_LPUBDEF, OMF_LPUBDEF32, OMF_MODEND, OMF_MODEND32, OMF_NBKPAT, OMF_NBKPAT32, OMF_PUBDEF, OMF_PUBDEF32, OMF_SEGDEF, OMF_SEGDEF32, OMF_THEADR, OMF_VENDEXT, OMF_VERNUM, type, and types.
Referenced by load_record_omf().
|
static |
Definition at line 418 of file omf.c.
References load_record_omf(), NULL, rz_bin_omf_obj::records, autogen_x86imm::tmp, and ut64().
Referenced by rz_bin_internal_omf_load().
|
static |
Definition at line 366 of file omf.c.
References buf_size, load_omf_data(), load_omf_lnames(), load_omf_pubdef(), load_omf_segdef(), OMF_LEDATA, OMF_LEDATA32, OMF_LNAMES, OMF_LPUBDEF, OMF_LPUBDEF32, OMF_PUBDEF, OMF_PUBDEF32, OMF_SEGDEF, OMF_SEGDEF32, RZ_LOG_ERROR, and RZ_NEWS0.
Referenced by load_record_omf().
|
static |
Definition at line 326 of file omf.c.
References buf_size, OMF_DATA::next, NULL, OMF_DATA::offset, omf_get_idx(), OMF_LEDATA, OMF_LEDATA32, OMF_DATA::paddr, RZ_LOG_ERROR, RZ_NEW0, rz_read_le16(), rz_read_le32(), OMF_DATA::seg_idx, and OMF_DATA::size.
Referenced by load_omf_content().
|
static |
Definition at line 82 of file omf.c.
References buf_size, cb, OMF_multi_datas::elems, free(), free_lname(), int, memcpy(), names, OMF_multi_datas::nb_elem, NULL, RZ_FREE, RZ_LOG_ERROR, RZ_NEW0, RZ_NEWS0, and while().
Referenced by load_omf_content().
|
static |
Definition at line 254 of file omf.c.
References buf_size, OMF_multi_datas::elems, load_omf_symb(), OMF_multi_datas::nb_elem, NULL, omf_count_symb(), omf_get_idx(), OMF_PUBDEF, RZ_LOG_ERROR, RZ_NEW0, and RZ_NEWS0.
Referenced by load_omf_content().
|
static |
Definition at line 141 of file omf.c.
References OMF_segment::bits, buf_size, OMF_segment::name_idx, NULL, omf_get_idx(), OMF_SEGDEF, OMF_SEGDEF32, RZ_LOG_ERROR, RZ_NEW0, rz_read_le16(), rz_read_le32(), OMF_segment::size, UT16_MAX, and UT32_MAX.
Referenced by load_omf_content().
|
static |
Definition at line 204 of file omf.c.
References bits(), buf_size, memcpy(), OMF_symbol::name, OMF_symbol::offset, RZ_LOG_ERROR, RZ_NEWS0, rz_read_le16(), rz_read_le32(), and OMF_symbol::seg_idx.
Referenced by load_omf_pubdef().
|
static |
Definition at line 391 of file omf.c.
References buf_size, is_valid_omf_type(), load_omf_content(), NULL, rz_bin_checksum_omf_ok(), RZ_FREE, RZ_LOG_ERROR, RZ_NEW0, and rz_read_le16().
Referenced by load_all_omf_records().
Definition at line 61 of file omf.c.
References buf_size.
Referenced by load_omf_data(), load_omf_pubdef(), and load_omf_segdef().
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().