Rizin
unix-like reverse engineering framework and cli tools
|
#include "elf.h"
Go to the source code of this file.
Definition at line 7 of file elf_misc.c.
References autogen_x86imm::tmp.
Referenced by rz_bin_elf_read_sword().
Definition at line 19 of file elf_misc.c.
References autogen_x86imm::tmp, and ut64().
Referenced by rz_bin_elf_read_sxword().
Definition at line 138 of file elf_misc.c.
References addr, UT32_ADD(), ut64(), UT64_ADD(), and value.
Referenced by verify_phdr_entry(), and verify_shdr_entry().
Definition at line 146 of file elf_misc.c.
References addr, UT32_ADD(), ut64(), UT64_ADD(), and value.
Referenced by rz_bin_elf_check_array(), verify_phdr_entry(), and verify_shdr_entry().
bool Elf_() rz_bin_elf_check_array | ( | RZ_NONNULL ELFOBJ * | bin, |
Elf_(Off) | offset, | ||
Elf_(Off) | length, | ||
Elf_(Off) | entry_size | ||
) |
Definition at line 32 of file elf_misc.c.
References Elf_, length, rz_bin_elf_add_off(), rz_bin_elf_mul_off(), and rz_return_val_if_fail.
Referenced by rz_bin_elf_sections_new(), rz_bin_elf_segments_new(), and rz_bin_elf_strtab_new().
Definition at line 154 of file elf_misc.c.
References addr, UT32_MUL(), ut64(), UT64_MUL(), and value.
Referenced by parse_note_file().
Definition at line 162 of file elf_misc.c.
References addr, UT32_MUL(), ut64(), UT64_MUL(), and value.
Referenced by rz_bin_elf_check_array().
bool Elf_() rz_bin_elf_read_addr | ( | RZ_NONNULL ELFOBJ * | bin, |
RZ_NONNULL RZ_INOUT ut64 * | offset, | ||
RZ_NONNULL RZ_OUT Elf_(Addr) * | result | ||
) |
Definition at line 82 of file elf_misc.c.
References rz_return_val_if_fail, and ut64().
Referenced by get_dynamic_entry_aux(), get_got_entry(), get_note_file_aux(), get_phdr_entry(), get_shdr_entry_aux(), get_symbol_entry_aux(), parse_note_file(), read_ehdr_other_aux(), and read_reloc_entry_aux().
bool Elf_() rz_bin_elf_read_char | ( | RZ_NONNULL ELFOBJ * | bin, |
RZ_NONNULL RZ_INOUT ut64 * | offset, | ||
RZ_NONNULL RZ_OUT ut8 * | result | ||
) |
Definition at line 52 of file elf_misc.c.
References rz_buf_read8_offset, and rz_return_val_if_fail.
Referenced by Elf_(), and get_symbol_entry_aux().
bool Elf_() rz_bin_elf_read_half | ( | RZ_NONNULL ELFOBJ * | bin, |
RZ_NONNULL RZ_INOUT ut64 * | offset, | ||
RZ_NONNULL RZ_OUT Elf_(Half) * | result | ||
) |
Definition at line 57 of file elf_misc.c.
References rz_return_val_if_fail.
Referenced by get_verdef_entry_aux(), get_vernaux_entry_aux(), get_verneed_entry_aux(), read_ehdr_other(), read_ehdr_other_aux(), and rz_bin_elf_read_versym().
bool Elf_() rz_bin_elf_read_off | ( | RZ_NONNULL ELFOBJ * | bin, |
RZ_NONNULL RZ_INOUT ut64 * | offset, | ||
RZ_NONNULL RZ_OUT Elf_(Off) * | result | ||
) |
Definition at line 91 of file elf_misc.c.
References rz_return_val_if_fail, and ut64().
Referenced by get_note_file_aux(), get_phdr_entry(), get_shdr_entry_aux(), and read_ehdr_other_aux().
bool Elf_() rz_bin_elf_read_section | ( | RZ_NONNULL ELFOBJ * | bin, |
RZ_NONNULL RZ_INOUT ut64 * | offset, | ||
RZ_NONNULL RZ_OUT Elf_(Section) * | result | ||
) |
Definition at line 100 of file elf_misc.c.
References rz_return_val_if_fail.
Referenced by get_symbol_entry_aux().
bool Elf_() rz_bin_elf_read_sword | ( | RZ_NONNULL ELFOBJ * | bin, |
RZ_NONNULL RZ_INOUT ut64 * | offset, | ||
RZ_NONNULL RZ_OUT Elf_(Sword) * | result | ||
) |
Definition at line 67 of file elf_misc.c.
References buffer_read_32_signed(), and rz_return_val_if_fail.
Referenced by rz_bin_elf_read_sword_sxword().
bool Elf_() rz_bin_elf_read_sword_sxword | ( | RZ_NONNULL ELFOBJ * | bin, |
RZ_NONNULL RZ_INOUT ut64 * | offset, | ||
RZ_NONNULL RZ_OUT Elf_(Sword) * | result | ||
) |
Definition at line 131 of file elf_misc.c.
References Elf_, rz_bin_elf_read_sword(), and rz_return_val_if_fail.
Referenced by get_dynamic_entry_aux(), and read_reloc_entry_aux().
bool Elf_() rz_bin_elf_read_sxword | ( | RZ_NONNULL ELFOBJ * | bin, |
RZ_NONNULL RZ_INOUT ut64 * | offset, | ||
RZ_NONNULL RZ_OUT Elf_(Sxword) * | result | ||
) |
Definition at line 77 of file elf_misc.c.
References buffer_read_64_signed(), rz_return_val_if_fail, and st64.
bool Elf_() rz_bin_elf_read_versym | ( | RZ_NONNULL ELFOBJ * | bin, |
RZ_NONNULL RZ_INOUT ut64 * | offset, | ||
RZ_NONNULL RZ_OUT Elf_(Versym) * | result | ||
) |
Definition at line 105 of file elf_misc.c.
References Elf_, rz_bin_elf_read_half(), and rz_return_val_if_fail.
Referenced by get_gnu_versym().
bool Elf_() rz_bin_elf_read_word | ( | RZ_NONNULL ELFOBJ * | bin, |
RZ_NONNULL RZ_INOUT ut64 * | offset, | ||
RZ_NONNULL RZ_OUT Elf_(Word) * | result | ||
) |
Definition at line 62 of file elf_misc.c.
References rz_return_val_if_fail.
Referenced by get_highest_chain_index_in_gnu_hash_table_buckets(), get_highest_symbol_index_in_gnu_hash_table_chains(), get_import_addr_x86_manual(), get_phdr_entry(), get_shdr_entry_aux(), get_symbol_entry_aux(), get_verdaux_entry_aux(), get_verdef_entry_aux(), get_vernaux_entry_aux(), get_verneed_entry_aux(), read_ehdr_other_aux(), read_gnu_hash_table(), read_hash_table(), read_note_segment_header(), and rz_bin_elf_read_word_xword().
bool Elf_() rz_bin_elf_read_word_xword | ( | RZ_NONNULL ELFOBJ * | bin, |
RZ_NONNULL RZ_INOUT ut64 * | offset, | ||
RZ_NONNULL RZ_OUT Elf_(Word) * | result | ||
) |
Definition at line 117 of file elf_misc.c.
References Elf_, rz_bin_elf_read_word(), and rz_return_val_if_fail.
Referenced by get_phdr_entry(), get_shdr_entry_aux(), and read_reloc_entry_aux().
bool Elf_() rz_bin_elf_read_xword | ( | RZ_NONNULL ELFOBJ * | bin, |
RZ_NONNULL RZ_INOUT ut64 * | offset, | ||
RZ_NONNULL RZ_OUT Elf_(Xword) * | result | ||
) |
Definition at line 72 of file elf_misc.c.
References rz_return_val_if_fail, and ut64().
Referenced by get_symbol_entry_aux().