Rizin
unix-like reverse engineering framework and cli tools
|
#include "elf.h"
Go to the source code of this file.
Macros | |
#define | ROUND_UP_4(x) ((x) + (4 - 1)) / 4 * 4 |
#define | X86 0 |
#define | X86_64 1 |
#define | ARM 2 |
#define | AARCH64 3 |
#define | ARCH_LEN 4 |
Variables | |
static RzBinElfPrStatusLayout | prstatus_layouts [ARCH_LEN] |
#define AARCH64 3 |
Definition at line 14 of file elf_notes.c.
#define ARCH_LEN 4 |
Definition at line 15 of file elf_notes.c.
#define ARM 2 |
Definition at line 13 of file elf_notes.c.
Definition at line 9 of file elf_notes.c.
#define X86 0 |
Definition at line 11 of file elf_notes.c.
#define X86_64 1 |
Definition at line 12 of file elf_notes.c.
|
static |
Definition at line 58 of file elf_notes.c.
References get_note_file_aux(), PFMT64x, RZ_LOG_WARN, autogen_x86imm::tmp, and ut64().
Referenced by set_note_file().
|
static |
Definition at line 52 of file elf_notes.c.
References Elf_, rz_bin_elf_read_addr(), and rz_bin_elf_read_off().
Referenced by get_note_file().
|
static |
|
static |
Definition at line 183 of file elf_notes.c.
References e, note_file_free(), note_prstatus_free(), NT_FILE, NT_PRSTATUS, and RzBinElfNote.
Referenced by rz_bin_elf_notes_new().
|
static |
Definition at line 175 of file elf_notes.c.
References free(), and rz_bin_elf_note_prstatus_t::regstate.
Referenced by note_free().
|
static |
Definition at line 196 of file elf_notes.c.
References e, and rz_vector_fini().
Referenced by rz_bin_elf_notes_new().
|
static |
Definition at line 76 of file elf_notes.c.
References Elf_, free(), i, NT_FILE, NULL, rz_bin_elf_mul_addr(), rz_bin_elf_read_addr(), rz_buf_get_nstring(), rz_vector_push(), RzBinElfNote, set_note_file(), and ut64().
Referenced by set_note().
|
static |
Definition at line 24 of file elf_notes.c.
References Elf_, NT_PRSTATUS, NULL, prstatus_layout_t::regdelta, prstatus_layout_t::regsize, rz_bin_elf_get_prstatus_layout(), rz_buf_read_at(), RZ_LOG_WARN, RZ_NEWS, rz_vector_push(), and RzBinElfNote.
Referenced by set_note().
|
static |
Definition at line 137 of file elf_notes.c.
References Elf_, and rz_bin_elf_read_word().
Referenced by set_note_segment().
RZ_BORROW RzBinElfPrStatusLayout* Elf_() rz_bin_elf_get_prstatus_layout | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 201 of file elf_notes.c.
References AARCH64, ARM, EM_386, EM_AARCH64, EM_ARM, EM_X86_64, NULL, prstatus_layouts, rz_return_val_if_fail, X86, and X86_64.
Referenced by parse_note_prstatus(), and rz_bin_elf_get_sp_val().
bool Elf_() rz_bin_elf_has_notes | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 255 of file elf_notes.c.
References rz_return_val_if_fail.
RZ_OWN RzVector* Elf_() rz_bin_elf_notes_new | ( | RZ_NONNULL ELFOBJ * | bin | ) |
Definition at line 218 of file elf_notes.c.
References note_free(), note_segment_free(), NULL, PT_NOTE, rz_bin_elf_foreach_segments, rz_return_val_if_fail, rz_vector_fini(), rz_vector_free(), rz_vector_init(), rz_vector_len(), rz_vector_new(), rz_vector_push(), RzBinElfNote, RzBinElfSegment, and set_note_segment().
Referenced by init().
|
static |
Definition at line 118 of file elf_notes.c.
References NT_FILE, NT_PRSTATUS, parse_note_file(), parse_note_prstatus(), and RZ_LOG_WARN.
Referenced by set_note_segment().
|
static |
Definition at line 67 of file elf_notes.c.
References get_note_file(), and name.
Referenced by parse_note_file().
|
static |
Definition at line 153 of file elf_notes.c.
References Elf_, read_note_segment_header(), ROUND_UP_4, set_note(), and ut64().
Referenced by rz_bin_elf_notes_new().
|
static |
Definition at line 17 of file elf_notes.c.
Referenced by rz_bin_elf_get_prstatus_layout().