Rizin
unix-like reverse engineering framework and cli tools
|
#include "elf_dynamic.h"
Go to the source code of this file.
Functions | |
static bool | get_dt_info (RzBinElfDtDynamic *ptr, ut64 key, ut64 *info) |
static bool | get_dynamic_entry_aux (ELFOBJ *bin, ut64 offset, Elf_(Dyn) *entry) |
static bool | get_dynamic_entry (ELFOBJ *bin, ut64 offset, Elf_(Dyn) *entry) |
static bool | add_dt_dynamic_entry (RzBinElfDtDynamic *ptr, ut64 key, ut64 info) |
static bool | fill_dt_dynamic (ELFOBJ *bin, RzBinElfDtDynamic *ptr, ut64 offset, ut64 size) |
static bool | init_dt_dynamic (ELFOBJ *bin, RzBinElfDtDynamic *ptr) |
RZ_BORROW RzVector *Elf_() | rz_bin_elf_get_dt_needed (RZ_NONNULL ELFOBJ *bin) |
RZ_OWN RzBinElfDtDynamic *Elf_() | rz_bin_elf_dt_dynamic_new (RZ_NONNULL ELFOBJ *bin) |
bool Elf_() | rz_bin_elf_get_dt_info (RZ_NONNULL ELFOBJ *bin, ut64 key, RZ_OUT ut64 *info) |
bool Elf_() | rz_bin_elf_has_dt_dynamic (RZ_NONNULL ELFOBJ *bin) |
void Elf_() | rz_bin_elf_dt_dynamic_free (RzBinElfDtDynamic *ptr) |
|
static |
Definition at line 36 of file elf_dynamic.c.
References DT_NEEDED, rz_bin_elf_dt_dynamic_t::dt_needed, rz_bin_elf_dt_dynamic_t::info, info(), key, and rz_vector_push().
Referenced by fill_dt_dynamic().
|
static |
Definition at line 44 of file elf_dynamic.c.
References add_dt_dynamic_entry(), DT_NULL, Elf_, get_dt_info(), get_dynamic_entry(), NULL, PFMT64x, RZ_LOG_WARN, and ut64().
Referenced by init_dt_dynamic().
|
static |
Definition at line 7 of file elf_dynamic.c.
References found, rz_bin_elf_dt_dynamic_t::info, info(), key, autogen_x86imm::tmp, and ut64().
Referenced by fill_dt_dynamic(), and rz_bin_elf_get_dt_info().
Definition at line 27 of file elf_dynamic.c.
References get_dynamic_entry_aux(), PFMT64x, and RZ_LOG_WARN.
Referenced by fill_dt_dynamic().
Definition at line 22 of file elf_dynamic.c.
References Elf_, rz_bin_elf_read_addr(), and rz_bin_elf_read_sword_sxword().
Referenced by get_dynamic_entry().
|
static |
Definition at line 67 of file elf_dynamic.c.
References Elf_, fill_dt_dynamic(), PT_DYNAMIC, rz_bin_elf_get_segment_with_type(), rz_bin_elf_v2p(), RZ_LOG_INFO, RZ_LOG_WARN, RzBinElfSegment, ut64(), and UT64_MAX.
Referenced by rz_bin_elf_dt_dynamic_new().
void Elf_() rz_bin_elf_dt_dynamic_free | ( | RzBinElfDtDynamic * | ptr | ) |
Definition at line 135 of file elf_dynamic.c.
References free(), and rz_vector_fini().
Referenced by rz_bin_elf_dt_dynamic_new(), and rz_bin_elf_free().
RZ_OWN RzBinElfDtDynamic* Elf_() rz_bin_elf_dt_dynamic_new | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 98 of file elf_dynamic.c.
References rz_bin_elf_dt_dynamic_t::dt_needed, Elf_, rz_bin_elf_dt_dynamic_t::info, init_dt_dynamic(), NULL, rz_bin_elf_dt_dynamic_free(), RZ_NEW0, rz_vector_init(), and ut64().
Referenced by init_dt_dynamic_aux().
Definition at line 120 of file elf_dynamic.c.
References Elf_, get_dt_info(), info(), key, rz_bin_elf_has_dt_dynamic(), and rz_return_val_if_fail.
Referenced by create_section_plt(), Elf_(), elf_is_bind_now(), get_dynamic_elf_symbols(), get_gnu_verneed(), get_gnu_versym(), get_import_addr_arm(), get_import_addr_mips(), get_import_addr_ppc(), get_import_addr_riscv(), get_import_addr_x86(), get_import_addr_x86_manual(), get_main_offset_mips(), get_plt_name(), get_relocs_entry_from_dt_dynamic(), get_relocs_entry_from_dt_dynamic_aux(), get_sections_from_dt_dynamic(), get_versym_entry_sdb_from_verdef(), get_versym_entry_sdb_from_verneed(), has_dt_rpath_entry(), init_dynstr_aux(), rz_bin_elf_get_fini_offset(), rz_bin_elf_get_gnu_hash_table(), rz_bin_elf_get_hash_table(), rz_bin_elf_get_init_offset(), and rz_bin_elf_get_num_relocs_dynamic_plt().
RZ_BORROW RzVector* Elf_() rz_bin_elf_get_dt_needed | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 88 of file elf_dynamic.c.
References Elf_, NULL, rz_bin_elf_has_dt_dynamic(), and rz_return_val_if_fail.
Referenced by rz_bin_elf_get_libs().
bool Elf_() rz_bin_elf_has_dt_dynamic | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 130 of file elf_dynamic.c.
References rz_return_val_if_fail.
Referenced by get_import_addr(), get_relocs_entry_from_dt_dynamic(), rz_bin_elf_get_dt_info(), rz_bin_elf_get_dt_needed(), rz_bin_elf_get_fini_offset(), rz_bin_elf_get_init_offset(), and rz_bin_elf_get_libs().