Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_util.h>
Go to the source code of this file.
Classes | |
struct | plan9_exec |
Macros | |
#define | HDR_MAGIC 0x00008000 /* header expansion */ |
#define | _MAGIC(f, b) ((f) | ((((4 * (b)) + 0) * (b)) + 7)) |
#define | A_MAGIC _MAGIC(0, 8) /* 68020 */ |
#define | I_MAGIC _MAGIC(0, 11) /* intel 386 */ |
#define | J_MAGIC _MAGIC(0, 12) /* intel 960 (retired) */ |
#define | K_MAGIC _MAGIC(0, 13) /* sparc */ |
#define | V_MAGIC _MAGIC(0, 16) /* mips 3000 BE */ |
#define | X_MAGIC _MAGIC(0, 17) /* att dsp 3210 (retired) */ |
#define | M_MAGIC _MAGIC(0, 18) /* mips 4000 BE */ |
#define | D_MAGIC _MAGIC(0, 19) /* amd 29000 (retired) */ |
#define | E_MAGIC _MAGIC(0, 20) /* arm */ |
#define | Q_MAGIC _MAGIC(0, 21) /* powerpc */ |
#define | N_MAGIC _MAGIC(0, 22) /* mips 4000 LE */ |
#define | L_MAGIC _MAGIC(0, 23) /* dec alpha */ |
#define | P_MAGIC _MAGIC(0, 24) /* mips 3000 LE */ |
#define | U_MAGIC _MAGIC(0, 25) /* sparc64 */ |
#define | S_MAGIC _MAGIC(HDR_MAGIC, 26) /* amd64 */ |
#define | T_MAGIC _MAGIC(HDR_MAGIC, 27) /* powerpc64 */ |
#define | TOS_SIZE 14 /* Size of Top of Stack: 56 / 4 */ |
#define | HDR_SIZE 0x20 |
#define | STR_ADDR 0x1000 /* Start Address */ |
#define | TXT_ADDR HDR_SIZE + ex.text /* TEXT Address */ |
#define | DAT_ADDR STR_ADDR + PAGE_ALIGN(TXT_ADDR) /* DATA&BSS Address */ |
#define | p9bin_open(x) fopen(x, "r") |
#define | p9bin_close(x) fclose(x) |
Functions | |
int | rz_bin_p9_get_arch (RzBuffer *b, int *bits, int *big_endian) |
Definition at line 7 of file p9bin.c.
References a, b, bits(), E_MAGIC, I_MAGIC, K_MAGIC, M_MAGIC, N_MAGIC, P_MAGIC, Q_MAGIC, RZ_ASM_ARCH_ARM, RZ_ASM_ARCH_MIPS, RZ_ASM_ARCH_PPC, RZ_ASM_ARCH_SPARC, RZ_ASM_ARCH_X86, rz_buf_read_be32_at, S_MAGIC, T_MAGIC, U_MAGIC, and V_MAGIC.
Referenced by check_buffer(), and info().