Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | relocs_segment |
|
static |
Definition at line 48 of file elf_relocs.c.
References Elf_, fix_rva_and_offset_exec_file(), fix_rva_and_offset_relocable_file(), and rz_bin_elf_is_relocatable().
Referenced by get_relocs_entry().
|
static |
Definition at line 38 of file elf_relocs.c.
References Elf_, rz_bin_elf_reloc_t::offset, rz_bin_elf_reloc_t::paddr, rz_bin_elf_v2p(), UT64_MAX, and rz_bin_elf_reloc_t::vaddr.
Referenced by fix_rva_and_offset().
|
static |
Definition at line 26 of file elf_relocs.c.
References Elf_, rz_bin_elf_section_t::offset, rz_bin_elf_reloc_t::offset, rz_bin_elf_reloc_t::paddr, rz_bin_elf_get_section(), rz_bin_elf_p2v(), UT64_MAX, and rz_bin_elf_reloc_t::vaddr.
Referenced by fix_rva_and_offset().
|
static |
Definition at line 83 of file elf_relocs.c.
References rz_bin_elf_reloc_t::addend, Elf_, ELF_R_SYM, ELF_R_TYPE, rz_bin_elf_reloc_t::mode, rz_bin_elf_reloc_t::offset, read_reloc_entry(), rz_bin_elf_reloc_t::sym, autogen_x86imm::tmp, and rz_bin_elf_reloc_t::type.
Referenced by get_relocs_entry().
|
static |
Definition at line 105 of file elf_relocs.c.
References relocs_segment::entry_size, fix_rva_and_offset(), get_reloc_entry(), has_already_been_processed(), relocs_segment::mode, relocs_segment::offset, relocs(), rz_vector_push(), relocs_segment::size, autogen_x86imm::tmp, and ut64().
Referenced by get_relocs_entry_from_dt_dynamic_aux(), and get_relocs_entry_from_sections().
Definition at line 148 of file elf_relocs.c.
References DT_JMPREL, DT_PLTREL, DT_PLTRELSZ, DT_REL, DT_RELA, DT_RELAENT, DT_RELASZ, DT_RELENT, DT_RELSZ, Elf_, relocs_segment::entry_size, get_relocs_entry_from_dt_dynamic_aux(), get_size_rel_mode(), relocs(), rz_bin_elf_get_dt_info(), rz_bin_elf_has_dt_dynamic(), and ut64().
Referenced by rz_bin_elf_relocs_new().
|
static |
Definition at line 130 of file elf_relocs.c.
References addr, Elf_, relocs_segment::entry_size, get_relocs_entry(), NULL, relocs(), relocs_segment_init(), rz_bin_elf_get_dt_info(), rz_bin_elf_v2p(), ut64(), and UT64_MAX.
Referenced by get_relocs_entry_from_dt_dynamic().
Definition at line 182 of file elf_relocs.c.
References relocs_segment::entry_size, get_relocs_entry(), get_section_relocation_mode(), get_size_rel_mode(), section::offset, relocs(), relocs_segment_init(), rz_bin_elf_foreach_sections, SHT_REL, SHT_RELA, section::size, and ut64().
Referenced by rz_bin_elf_relocs_new().
|
static |
Definition at line 178 of file elf_relocs.c.
References DT_REL, DT_RELA, and SHT_REL.
Referenced by get_relocs_entry_from_sections().
Definition at line 56 of file elf_relocs.c.
Referenced by get_relocs_entry_from_dt_dynamic(), get_relocs_entry_from_sections(), and rz_bin_elf_get_num_relocs_dynamic_plt().
Definition at line 74 of file elf_relocs.c.
References PFMT64x, read_reloc_entry_aux(), and RZ_LOG_WARN.
Referenced by get_reloc_entry().
|
static |
Definition at line 60 of file elf_relocs.c.
References DT_REL, Elf_, rz_bin_elf_read_addr(), rz_bin_elf_read_sword_sxword(), and rz_bin_elf_read_word_xword().
Referenced by read_reloc_entry().
|
static |
Definition at line 1 of file elf_relocs.c.
Referenced by get_relocs_entry_from_dt_dynamic_aux(), and get_relocs_entry_from_sections().
ut64 Elf_() rz_bin_elf_get_num_relocs_dynamic_plt | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 255 of file elf_relocs.c.
References DT_PLTREL, DT_PLTRELSZ, Elf_, relocs_segment::entry_size, get_size_rel_mode(), rz_bin_elf_get_dt_info(), rz_return_val_if_fail, and ut64().
Referenced by get_import_addr_ppc().
size_t Elf_() rz_bin_elf_get_relocs_count | ( | RZ_NONNULL ELFOBJ * | bin | ) |
bool Elf_() rz_bin_elf_has_relocs | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 239 of file elf_relocs.c.
References rz_return_val_if_fail.
Referenced by get_import_addr().
RZ_OWN RzVector* Elf_() rz_bin_elf_relocs_new | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 202 of file elf_relocs.c.
References get_relocs_entry_from_dt_dynamic(), get_relocs_entry_from_sections(), NULL, rz_return_val_if_fail, rz_vector_free(), rz_vector_len(), and rz_vector_new().
Referenced by init().