Rizin
unix-like reverse engineering framework and cli tools
|
#include "elf.h"
Go to the source code of this file.
|
static |
Definition at line 7 of file elf_ehdr.c.
References rz_bin_elf_read_char(), RZ_LOG_WARN, autogen_x86imm::tmp, and ut64().
Referenced by read_ehdr_other(), read_ehdr_other_aux(), rz_bin_elf_get_ehdr(), and rz_bin_elf_print_ehdr().
Definition at line 18 of file elf_ehdr.c.
Referenced by read_ehdr_other().
Definition at line 66 of file elf_ehdr.c.
References CGCMAG, ELFMAG, SCGCMAG, and SELFMAG.
Referenced by rz_bin_elf_get_ehdr().
|
static |
Definition at line 70 of file elf_ehdr.c.
References cb, free(), PFMT64x, and autogen_x86imm::tmp.
Referenced by rz_bin_elf_print_ehdr().
Definition at line 34 of file elf_ehdr.c.
References EI_NIDENT, Elf_(), is_tiny_elf(), read_ehdr_other_aux(), rz_bin_elf_read_half(), RZ_LOG_WARN, and ut64().
Referenced by rz_bin_elf_get_ehdr().
Definition at line 22 of file elf_ehdr.c.
References Elf_(), rz_bin_elf_read_addr(), rz_bin_elf_read_half(), rz_bin_elf_read_off(), and rz_bin_elf_read_word().
Referenced by read_ehdr_other().
RZ_OWN char* Elf_() rz_bin_elf_get_e_ehsize_as_string | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 82 of file elf_ehdr.c.
References NULL, rz_return_val_if_fail, and rz_str_newf().
Referenced by rz_bin_elf_print_ehdr().
RZ_OWN char* Elf_() rz_bin_elf_get_e_entry_as_string | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 88 of file elf_ehdr.c.
References NULL, PFMT64x, rz_return_val_if_fail, rz_str_newf(), and ut64().
Referenced by rz_bin_elf_print_ehdr().
RZ_OWN char* Elf_() rz_bin_elf_get_e_flags_as_string | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 94 of file elf_ehdr.c.
References NULL, rz_return_val_if_fail, and rz_str_newf().
Referenced by rz_bin_elf_print_ehdr().
RZ_OWN char* Elf_() rz_bin_elf_get_e_indent_as_string | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 100 of file elf_ehdr.c.
References NULL, rz_return_val_if_fail, and rz_str_newf().
Referenced by rz_bin_elf_print_ehdr().
RZ_OWN char* Elf_() rz_bin_elf_get_e_machine_as_string | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 122 of file elf_ehdr.c.
References NULL, rz_return_val_if_fail, and rz_str_newf().
Referenced by rz_bin_elf_print_ehdr().
RZ_OWN char* Elf_() rz_bin_elf_get_e_phentsize_as_string | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 128 of file elf_ehdr.c.
References NULL, rz_return_val_if_fail, and rz_str_newf().
Referenced by rz_bin_elf_print_ehdr().
RZ_OWN char* Elf_() rz_bin_elf_get_e_phnum_as_string | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 134 of file elf_ehdr.c.
References NULL, rz_return_val_if_fail, and rz_str_newf().
Referenced by rz_bin_elf_print_ehdr().
RZ_OWN char* Elf_() rz_bin_elf_get_e_phoff_as_string | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 140 of file elf_ehdr.c.
References NULL, PFMT64x, rz_return_val_if_fail, rz_str_newf(), and ut64().
Referenced by rz_bin_elf_print_ehdr().
RZ_OWN char* Elf_() rz_bin_elf_get_e_shentsize_as_string | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 146 of file elf_ehdr.c.
References NULL, rz_return_val_if_fail, and rz_str_newf().
Referenced by rz_bin_elf_print_ehdr().
RZ_OWN char* Elf_() rz_bin_elf_get_e_shnum_as_string | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 152 of file elf_ehdr.c.
References NULL, rz_return_val_if_fail, and rz_str_newf().
Referenced by rz_bin_elf_print_ehdr().
RZ_OWN char* Elf_() rz_bin_elf_get_e_shoff_as_string | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 158 of file elf_ehdr.c.
References NULL, PFMT64x, rz_return_val_if_fail, rz_str_newf(), and ut64().
Referenced by rz_bin_elf_print_ehdr().
RZ_OWN char* Elf_() rz_bin_elf_get_e_shstrndx_as_string | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 164 of file elf_ehdr.c.
References NULL, rz_return_val_if_fail, and rz_str_newf().
Referenced by rz_bin_elf_print_ehdr().
RZ_OWN char* Elf_() rz_bin_elf_get_e_type_as_string | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 170 of file elf_ehdr.c.
References NULL, rz_return_val_if_fail, and rz_str_newf().
Referenced by rz_bin_elf_print_ehdr().
RZ_OWN char* Elf_() rz_bin_elf_get_e_version_as_string | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 176 of file elf_ehdr.c.
References NULL, rz_return_val_if_fail, and rz_str_newf().
Referenced by rz_bin_elf_print_ehdr().
bool Elf_() rz_bin_elf_get_ehdr | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 182 of file elf_ehdr.c.
References EI_DATA, EI_NIDENT, Elf_(), ELFDATA2MSB, is_valid_elf_ident(), memset(), read_ehdr_other(), rz_buf_read_at(), RZ_LOG_WARN, and rz_return_val_if_fail.
Referenced by init_ehdr().
bool Elf_() rz_bin_elf_print_ehdr | ( | ELFOBJ * | bin, |
RZ_NONNULL PrintfCallback | cb | ||
) |
Definition at line 202 of file elf_ehdr.c.
References cb, E_EHSIZE_OFFSET, E_ENTRYPOINT_OFFSET, E_FLAGS_OFFSET, E_IDENT_OFFSET, E_MACHINE_OFFSET, E_PHENTSIZE_OFFSET, E_PHNUM_OFFSET, E_PHOFF_OFFSET, E_SHENTSIZE_OFFSET, E_SHNUM_OFFSET, E_SHOFF_OFFSET, E_SHSTRNDX_OFFSET, E_TYPE_OFFSET, E_VERSION_OFFSET, Elf_(), print_ehdr_aux(), rz_bin_elf_get_e_ehsize_as_string(), rz_bin_elf_get_e_entry_as_string(), rz_bin_elf_get_e_flags_as_string(), rz_bin_elf_get_e_indent_as_string(), rz_bin_elf_get_e_machine_as_string(), rz_bin_elf_get_e_phentsize_as_string(), rz_bin_elf_get_e_phnum_as_string(), rz_bin_elf_get_e_phoff_as_string(), rz_bin_elf_get_e_shentsize_as_string(), rz_bin_elf_get_e_shnum_as_string(), rz_bin_elf_get_e_shoff_as_string(), rz_bin_elf_get_e_shstrndx_as_string(), rz_bin_elf_get_e_type_as_string(), rz_bin_elf_get_e_version_as_string(), and rz_return_val_if_fail.