Rizin
unix-like reverse engineering framework and cli tools
|
#include "elf.h"
Go to the source code of this file.
Functions | |
static bool | read_gnu_hash_table (ELFOBJ *bin, RzBinElfGnuHashTable *result) |
static bool | read_hash_table (ELFOBJ *bin, RzBinElfHashTable *result) |
static size_t | get_highest_chain_index_in_gnu_hash_table_buckets (ELFOBJ *bin, RzBinElfGnuHashTable *table, ut64 bucket_offset) |
static size_t | get_highest_symbol_index_in_gnu_hash_table_chains (ELFOBJ *bin, RzBinElfGnuHashTable *table, ut64 chain_offset, size_t index) |
bool Elf_() | rz_bin_elf_get_gnu_hash_table (RZ_NONNULL ELFOBJ *bin, RzBinElfGnuHashTable *result) |
bool Elf_() | rz_bin_elf_get_hash_table (RZ_NONNULL ELFOBJ *bin, RzBinElfHashTable *result) |
size_t Elf_() | rz_bin_elf_get_number_of_symbols_from_gnu_hash_table (RZ_NONNULL ELFOBJ *bin) |
size_t Elf_() | rz_bin_elf_get_number_of_symbols_from_hash_table (RZ_NONNULL ELFOBJ *bin) |
|
static |
Definition at line 23 of file elf_hash.c.
References rz_bin_elf_gnu_hash_table_t::data, Elf_, i, PFMT64x, rz_bin_elf_read_word(), RZ_LOG_WARN, RZ_MAX, and autogen_x86imm::tmp.
Referenced by rz_bin_elf_get_number_of_symbols_from_gnu_hash_table().
|
static |
Definition at line 39 of file elf_hash.c.
References rz_bin_elf_gnu_hash_table_t::data, Elf_, PFMT64x, rz_bin_elf_read_word(), RZ_LOG_WARN, and autogen_x86imm::tmp.
Referenced by rz_bin_elf_get_number_of_symbols_from_gnu_hash_table().
|
static |
Definition at line 7 of file elf_hash.c.
References rz_bin_elf_gnu_hash_table_t::data, Elf_, rz_bin_elf_gnu_hash_table_t::offset, rz_bin_elf_read_word(), and ut64().
Referenced by rz_bin_elf_get_gnu_hash_table().
|
static |
Definition at line 16 of file elf_hash.c.
References rz_bin_elf_hash_table_::data, Elf_, rz_bin_elf_hash_table_::offset, rz_bin_elf_read_word(), and ut64().
Referenced by rz_bin_elf_get_hash_table().
bool Elf_() rz_bin_elf_get_gnu_hash_table | ( | RZ_NONNULL ELFOBJ * | bin, |
RzBinElfGnuHashTable * | result | ||
) |
Definition at line 64 of file elf_hash.c.
References addr, DT_GNU_HASH, Elf_, PFMT64x, read_gnu_hash_table(), rz_bin_elf_get_dt_info(), rz_bin_elf_v2p(), RZ_LOG_WARN, rz_return_val_if_fail, ut64(), and UT64_MAX.
Referenced by rz_bin_elf_get_number_of_symbols_from_gnu_hash_table().
bool Elf_() rz_bin_elf_get_hash_table | ( | RZ_NONNULL ELFOBJ * | bin, |
RzBinElfHashTable * | result | ||
) |
Definition at line 85 of file elf_hash.c.
References addr, DT_HASH, Elf_, PFMT64x, read_hash_table(), rz_bin_elf_get_dt_info(), rz_bin_elf_v2p(), RZ_LOG_WARN, rz_return_val_if_fail, ut64(), and UT64_MAX.
Referenced by rz_bin_elf_get_number_of_symbols_from_hash_table().
size_t Elf_() rz_bin_elf_get_number_of_symbols_from_gnu_hash_table | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 106 of file elf_hash.c.
References rz_bin_elf_gnu_hash_table_t::data, Elf_, get_highest_chain_index_in_gnu_hash_table_buckets(), get_highest_symbol_index_in_gnu_hash_table_chains(), rz_bin_elf_gnu_hash_table_t::offset, rz_bin_elf_get_gnu_hash_table(), rz_return_val_if_fail, and ut64().
size_t Elf_() rz_bin_elf_get_number_of_symbols_from_hash_table | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 122 of file elf_hash.c.
References rz_bin_elf_hash_table_::data, Elf_, rz_bin_elf_get_hash_table(), and rz_return_val_if_fail.