Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <rz_types.h>
#include <rz_util.h>
#include <rz_lib.h>
#include <rz_bin.h>
#include "nxo.h"
Go to the source code of this file.
Macros | |
#define | MO_(x) rz_buf_read_le64_at(buf, mh.mod_object + rz_offsetof(MODObject, x), &mo.x) |
Functions | |
static char * | readString (RzBuffer *buf, int off) |
const char * | fileType (const ut8 *buf) |
static void | walkSymbols (RzBuffer *buf, RzBinNXOObj *bin, ut64 symtab, ut64 strtab, ut64 strtab_size, ut64 relplt, ut64 baddr) |
void | parseMod (RzBuffer *buf, RzBinNXOObj *bin, ut32 mod0, ut64 baddr) |
#define MO_ | ( | x | ) | rz_buf_read_le64_at(buf, mh.mod_object + rz_offsetof(MODObject, x), &mo.x) |
void parseMod | ( | RzBuffer * | buf, |
RzBinNXOObj * | bin, | ||
ut32 | mod0, | ||
ut64 | baddr | ||
) |
Definition at line 130 of file nxo.c.
References baddr(), MODObject::base, MODHeader::bss_end, MODHeader::bss_start, MODHeader::dynamic, dynamic(), fini(), MODObject::fini, MODObject::init, init, MODHeader::magic, MO_, MODHeader::mod_object, MODObject::next, PFMT64x, MODObject::prev, MODObject::relplt, rz_buf_read_le32_at, RZ_LOG_INFO, MODObject::strtab, MODObject::strtab_size, MODObject::symtab, MODHeader::unwind_end, MODHeader::unwind_start, ut64(), and walkSymbols().
Referenced by load_buffer().
Definition at line 14 of file nxo.c.
References NULL, off, rz_buf_read_at(), and strdup().
Referenced by walkSymbols().
|
static |
Definition at line 40 of file nxo.c.
References addr, baddr(), rz_bin_symbol_t::bind, rz_bin_import_t::bind, free(), i, rz_bin_symbol_t::is_imported, name, rz_bin_symbol_t::name, rz_bin_import_t::name, rz_bin_import_t::ordinal, rz_bin_symbol_t::paddr, PFMT64u, PFMT64x, readString(), rz_bin_symbol_free(), RZ_BIN_TYPE_FUNC_STR, rz_buf_read_le32_at, rz_buf_read_le64_at, RZ_FREE, rz_list_append(), RZ_LOG_INFO, RZ_NEW0, rz_bin_symbol_t::size, strdup(), rz_bin_symbol_t::type, rz_bin_import_t::type, ut64(), and rz_bin_symbol_t::vaddr.
Referenced by parseMod().