Rizin
unix-like reverse engineering framework and cli tools
|
#include <rz_types_base.h>
Go to the source code of this file.
Classes | |
struct | coff_reloc |
Functions | |
RZ_PACKED (struct coff_hdr { ut16 f_magic;ut16 f_nscns;ut32 f_timdat;ut32 f_symptr;ut32 f_nsyms;ut16 f_opthdr;ut16 f_flags;}) | |
RZ_PACKED (struct coff_opt_hdr { ut16 magic;ut16 vstamp;ut32 tsize;ut32 dsize;ut32 bsize;ut32 entry;ut32 text_start;ut32 data_start;}) | |
RZ_PACKED (struct coff_scn_hdr { char s_name[8];ut32 s_paddr;ut32 s_vaddr;ut32 s_size;ut32 s_scnptr;ut32 s_relptr;ut32 s_lnnoptr;ut16 s_nreloc;ut16 s_nlnno;ut32 s_flags;}) | |
RZ_PACKED (struct coff_symbol { char n_name[8];ut32 n_value;ut16 n_scnum;ut16 n_type;ut8 n_sclass;ut8 n_numaux;}) | |
#define COFF_FILE_MACHINE_AM33 0x1d3 |
Definition at line 9 of file coff_specs.h.
#define COFF_FILE_MACHINE_AMD29KBE 0x7a01 |
Definition at line 21 of file coff_specs.h.
#define COFF_FILE_MACHINE_AMD29KLE 0x17a |
Definition at line 22 of file coff_specs.h.
#define COFF_FILE_MACHINE_AMD64 0x8664 |
Definition at line 10 of file coff_specs.h.
#define COFF_FILE_MACHINE_ARM 0x1c0 |
Definition at line 11 of file coff_specs.h.
#define COFF_FILE_MACHINE_ARM64 0xaa64 |
Definition at line 13 of file coff_specs.h.
#define COFF_FILE_MACHINE_ARMNT 0x1c4 |
Definition at line 12 of file coff_specs.h.
#define COFF_FILE_MACHINE_EBC 0xebc |
Definition at line 14 of file coff_specs.h.
#define COFF_FILE_MACHINE_H8300 0x0083 |
Definition at line 32 of file coff_specs.h.
#define COFF_FILE_MACHINE_I386 0x14c |
Definition at line 15 of file coff_specs.h.
#define COFF_FILE_MACHINE_IA64 0x200 |
Definition at line 16 of file coff_specs.h.
#define COFF_FILE_MACHINE_M32R 0x9041 |
Definition at line 17 of file coff_specs.h.
#define COFF_FILE_MACHINE_MIPS16 0x266 |
Definition at line 18 of file coff_specs.h.
#define COFF_FILE_MACHINE_MIPSFPU 0x366 |
Definition at line 19 of file coff_specs.h.
#define COFF_FILE_MACHINE_MIPSFPU16 0x466 |
Definition at line 20 of file coff_specs.h.
#define COFF_FILE_MACHINE_MSP430 0x00A0 |
Definition at line 40 of file coff_specs.h.
#define COFF_FILE_MACHINE_POWERPC 0x1f0 |
Definition at line 23 of file coff_specs.h.
#define COFF_FILE_MACHINE_POWERPCFP 0x1f1 |
Definition at line 24 of file coff_specs.h.
#define COFF_FILE_MACHINE_R4000 0x166 |
Definition at line 25 of file coff_specs.h.
#define COFF_FILE_MACHINE_SH3 0x1a2 |
Definition at line 26 of file coff_specs.h.
#define COFF_FILE_MACHINE_SH3DSP 0x1a3 |
Definition at line 27 of file coff_specs.h.
#define COFF_FILE_MACHINE_SH4 0x1a6 |
Definition at line 28 of file coff_specs.h.
#define COFF_FILE_MACHINE_SH5 0x1a8 |
Definition at line 29 of file coff_specs.h.
#define COFF_FILE_MACHINE_THUMB 0x1c2 |
Definition at line 30 of file coff_specs.h.
#define COFF_FILE_MACHINE_TMS320C28 0x009D |
Definition at line 39 of file coff_specs.h.
#define COFF_FILE_MACHINE_TMS320C54 0x0098 |
Definition at line 36 of file coff_specs.h.
#define COFF_FILE_MACHINE_TMS320C55 0x009C |
Definition at line 38 of file coff_specs.h.
#define COFF_FILE_MACHINE_TMS320C55PLUS 0x00A1 |
Definition at line 41 of file coff_specs.h.
#define COFF_FILE_MACHINE_TMS320C60 0x0099 |
Definition at line 37 of file coff_specs.h.
#define COFF_FILE_MACHINE_TMS470 0x0097 |
Definition at line 35 of file coff_specs.h.
#define COFF_FILE_MACHINE_UNKNOWN 0x0 |
Definition at line 8 of file coff_specs.h.
#define COFF_FILE_MACHINE_WCEMIPSV2 0x169 |
Definition at line 31 of file coff_specs.h.
#define COFF_FILE_TI_COFF 0xc1 |
Definition at line 34 of file coff_specs.h.
#define COFF_FLAGS_TI_F_BIG 0x0200 |
Definition at line 47 of file coff_specs.h.
#define COFF_FLAGS_TI_F_EXEC 0x0002 |
Definition at line 44 of file coff_specs.h.
#define COFF_FLAGS_TI_F_LITTLE 0x0100 |
Definition at line 48 of file coff_specs.h.
#define COFF_FLAGS_TI_F_LNNO 0x0004 |
Definition at line 45 of file coff_specs.h.
#define COFF_FLAGS_TI_F_LSYMS 0x0008 |
Definition at line 46 of file coff_specs.h.
#define COFF_FLAGS_TI_F_RELFLG 0x0001 |
Definition at line 43 of file coff_specs.h.
#define COFF_REL_AMD64_ABS 0 |
Definition at line 146 of file coff_specs.h.
#define COFF_REL_AMD64_ADDR32 2 |
Definition at line 148 of file coff_specs.h.
#define COFF_REL_AMD64_ADDR32_NB 3 |
Definition at line 149 of file coff_specs.h.
#define COFF_REL_AMD64_ADDR64 1 |
Definition at line 147 of file coff_specs.h.
#define COFF_REL_AMD64_REL32 4 |
Definition at line 150 of file coff_specs.h.
#define COFF_REL_AMD64_REL32_1 5 |
Definition at line 151 of file coff_specs.h.
#define COFF_REL_AMD64_REL32_2 6 |
Definition at line 152 of file coff_specs.h.
#define COFF_REL_AMD64_REL32_3 7 |
Definition at line 153 of file coff_specs.h.
#define COFF_REL_AMD64_REL32_4 8 |
Definition at line 154 of file coff_specs.h.
#define COFF_REL_AMD64_REL32_5 9 |
Definition at line 155 of file coff_specs.h.
#define COFF_REL_ARM64_ABSOLUTE 0 |
Definition at line 160 of file coff_specs.h.
#define COFF_REL_ARM64_ADDR32 1 |
Definition at line 161 of file coff_specs.h.
#define COFF_REL_ARM64_ADDR32NB 2 |
Definition at line 162 of file coff_specs.h.
#define COFF_REL_ARM64_BRANCH26 3 |
Definition at line 163 of file coff_specs.h.
#define COFF_REL_ARM_BLX23T 21 |
Definition at line 158 of file coff_specs.h.
#define COFF_REL_ARM_BRANCH24T 20 |
Definition at line 157 of file coff_specs.h.
#define COFF_REL_I386_ABS 0 |
Definition at line 139 of file coff_specs.h.
#define COFF_REL_I386_DIR16 1 |
Definition at line 140 of file coff_specs.h.
#define COFF_REL_I386_DIR32 6 |
Definition at line 142 of file coff_specs.h.
#define COFF_REL_I386_DIR32NB 7 |
Definition at line 143 of file coff_specs.h.
#define COFF_REL_I386_REL16 2 |
Definition at line 141 of file coff_specs.h.
#define COFF_REL_I386_REL32 20 |
Definition at line 144 of file coff_specs.h.
#define COFF_SCN_ALIGN_1024BYTES 0x00B00000 |
Definition at line 72 of file coff_specs.h.
#define COFF_SCN_ALIGN_128BYTES 0x00800000 |
Definition at line 69 of file coff_specs.h.
#define COFF_SCN_ALIGN_16BYTES 0x00500000 |
Definition at line 66 of file coff_specs.h.
#define COFF_SCN_ALIGN_1BYTES 0x00100000 |
Definition at line 62 of file coff_specs.h.
#define COFF_SCN_ALIGN_2048BYTES 0x00C00000 |
Definition at line 73 of file coff_specs.h.
#define COFF_SCN_ALIGN_256BYTES 0x00900000 |
Definition at line 70 of file coff_specs.h.
#define COFF_SCN_ALIGN_2BYTES 0x00200000 |
Definition at line 63 of file coff_specs.h.
#define COFF_SCN_ALIGN_32BYTES 0x00600000 |
Definition at line 67 of file coff_specs.h.
#define COFF_SCN_ALIGN_4096BYTES 0x00D00000 |
Definition at line 74 of file coff_specs.h.
#define COFF_SCN_ALIGN_4BYTES 0x00300000 |
Definition at line 64 of file coff_specs.h.
#define COFF_SCN_ALIGN_512BYTES 0x00A00000 |
Definition at line 71 of file coff_specs.h.
#define COFF_SCN_ALIGN_64BYTES 0x00700000 |
Definition at line 68 of file coff_specs.h.
#define COFF_SCN_ALIGN_8192BYTES 0x00E00000 |
Definition at line 75 of file coff_specs.h.
#define COFF_SCN_ALIGN_8BYTES 0x00400000 |
Definition at line 65 of file coff_specs.h.
#define COFF_SCN_CNT_CODE 0x00000020 |
Definition at line 51 of file coff_specs.h.
#define COFF_SCN_CNT_INIT_DATA 0x00000040 |
Definition at line 52 of file coff_specs.h.
#define COFF_SCN_GPREL 0x00008000 |
Definition at line 57 of file coff_specs.h.
#define COFF_SCN_LNK_COMDAT 0x00001000 |
Definition at line 56 of file coff_specs.h.
#define COFF_SCN_LNK_INFO 0x00000200 |
Definition at line 54 of file coff_specs.h.
#define COFF_SCN_LNK_NRELOC_OVFL 0x01000000 |
Definition at line 76 of file coff_specs.h.
#define COFF_SCN_LNK_OTHER 0x00000100 |
Definition at line 53 of file coff_specs.h.
#define COFF_SCN_LNK_REMOVE 0x00000800 |
Definition at line 55 of file coff_specs.h.
#define COFF_SCN_MEM_16BIT 0x00020000 |
Definition at line 59 of file coff_specs.h.
#define COFF_SCN_MEM_DISCARDABLE 0x02000000 |
Definition at line 77 of file coff_specs.h.
#define COFF_SCN_MEM_EXECUTE 0x20000000 |
Definition at line 81 of file coff_specs.h.
#define COFF_SCN_MEM_LOCKED 0x00040000 |
Definition at line 60 of file coff_specs.h.
#define COFF_SCN_MEM_NOT_CACHED 0x04000000 |
Definition at line 78 of file coff_specs.h.
#define COFF_SCN_MEM_NOT_PAGED 0x08000000 |
Definition at line 79 of file coff_specs.h.
#define COFF_SCN_MEM_PRELOAD 0x00080000 |
Definition at line 61 of file coff_specs.h.
#define COFF_SCN_MEM_PURGEABLE 0x00010000 |
Definition at line 58 of file coff_specs.h.
#define COFF_SCN_MEM_READ 0x40000000 |
Definition at line 82 of file coff_specs.h.
#define COFF_SCN_MEM_SHARED 0x10000000 |
Definition at line 80 of file coff_specs.h.
#define COFF_SCN_MEM_WRITE 0x80000000 |
Definition at line 83 of file coff_specs.h.
#define COFF_SCN_TYPE_NO_PAD 0x00000008 |
Definition at line 50 of file coff_specs.h.
#define COFF_SYM_CLASS_ARGUMENT 9 |
Definition at line 121 of file coff_specs.h.
#define COFF_SYM_CLASS_AUTOMATIC 1 |
Definition at line 113 of file coff_specs.h.
#define COFF_SYM_CLASS_BIT_FIELD 18 |
Definition at line 130 of file coff_specs.h.
#define COFF_SYM_CLASS_BLOCK 100 |
Definition at line 131 of file coff_specs.h.
#define COFF_SYM_CLASS_CLR_TOKEN 107 |
Definition at line 137 of file coff_specs.h.
#define COFF_SYM_CLASS_END_OF_FUNCTION 0xFF |
Definition at line 111 of file coff_specs.h.
#define COFF_SYM_CLASS_END_OF_STRUCT 102 |
Definition at line 133 of file coff_specs.h.
#define COFF_SYM_CLASS_ENUM_TAG 15 |
Definition at line 127 of file coff_specs.h.
#define COFF_SYM_CLASS_EXTERNAL 2 |
Definition at line 114 of file coff_specs.h.
#define COFF_SYM_CLASS_EXTERNAL_DEF 5 |
Definition at line 117 of file coff_specs.h.
#define COFF_SYM_CLASS_FILE 103 |
Definition at line 134 of file coff_specs.h.
#define COFF_SYM_CLASS_FUNCTION 101 |
Definition at line 132 of file coff_specs.h.
#define COFF_SYM_CLASS_LABEL 6 |
Definition at line 118 of file coff_specs.h.
#define COFF_SYM_CLASS_MEMBER_OF_ENUM 16 |
Definition at line 128 of file coff_specs.h.
#define COFF_SYM_CLASS_MEMBER_OF_STRUCT 8 |
Definition at line 120 of file coff_specs.h.
#define COFF_SYM_CLASS_MEMBER_OF_UNION 11 |
Definition at line 123 of file coff_specs.h.
#define COFF_SYM_CLASS_NULL 0 |
Definition at line 112 of file coff_specs.h.
#define COFF_SYM_CLASS_REGISTER 4 |
Definition at line 116 of file coff_specs.h.
#define COFF_SYM_CLASS_REGISTER_PARAM 17 |
Definition at line 129 of file coff_specs.h.
#define COFF_SYM_CLASS_SECTION 104 |
Definition at line 135 of file coff_specs.h.
#define COFF_SYM_CLASS_STATIC 3 |
Definition at line 115 of file coff_specs.h.
#define COFF_SYM_CLASS_STRUCT_TAG 10 |
Definition at line 122 of file coff_specs.h.
#define COFF_SYM_CLASS_TYPE_DEFINITION 13 |
Definition at line 125 of file coff_specs.h.
#define COFF_SYM_CLASS_UNDEFINED_LABEL 7 |
Definition at line 119 of file coff_specs.h.
#define COFF_SYM_CLASS_UNDEFINED_STATIC 14 |
Definition at line 126 of file coff_specs.h.
#define COFF_SYM_CLASS_UNION_TAG 12 |
Definition at line 124 of file coff_specs.h.
#define COFF_SYM_CLASS_WEAK_EXTERNAL 105 |
Definition at line 136 of file coff_specs.h.
#define COFF_SYM_DTYPE_ARRAY 3 |
Definition at line 109 of file coff_specs.h.
#define COFF_SYM_DTYPE_FUNCTION 2 |
Definition at line 108 of file coff_specs.h.
#define COFF_SYM_DTYPE_NULL 0 |
Definition at line 106 of file coff_specs.h.
#define COFF_SYM_DTYPE_POINTER 1 |
Definition at line 107 of file coff_specs.h.
Definition at line 218 of file coff_specs.h.
#define COFF_SYM_SCNUM_ABS 0xffff |
Definition at line 86 of file coff_specs.h.
#define COFF_SYM_SCNUM_DEBUG 0xfffe |
Definition at line 87 of file coff_specs.h.
#define COFF_SYM_SCNUM_UNDEF 0 |
Definition at line 85 of file coff_specs.h.
#define COFF_SYM_TYPE_BYTE 12 |
Definition at line 101 of file coff_specs.h.
#define COFF_SYM_TYPE_CHAR 2 |
Definition at line 91 of file coff_specs.h.
#define COFF_SYM_TYPE_DOUBLE 7 |
Definition at line 96 of file coff_specs.h.
#define COFF_SYM_TYPE_DWORD 15 |
Definition at line 104 of file coff_specs.h.
#define COFF_SYM_TYPE_ENUM 10 |
Definition at line 99 of file coff_specs.h.
#define COFF_SYM_TYPE_FLOAT 6 |
Definition at line 95 of file coff_specs.h.
#define COFF_SYM_TYPE_INT 4 |
Definition at line 93 of file coff_specs.h.
#define COFF_SYM_TYPE_LONG 5 |
Definition at line 94 of file coff_specs.h.
#define COFF_SYM_TYPE_MOE 11 |
Definition at line 100 of file coff_specs.h.
#define COFF_SYM_TYPE_NULL 0 |
Definition at line 89 of file coff_specs.h.
#define COFF_SYM_TYPE_SHORT 3 |
Definition at line 92 of file coff_specs.h.
#define COFF_SYM_TYPE_STRUCT 8 |
Definition at line 97 of file coff_specs.h.
#define COFF_SYM_TYPE_UINT 14 |
Definition at line 103 of file coff_specs.h.
#define COFF_SYM_TYPE_UNION 9 |
Definition at line 98 of file coff_specs.h.
#define COFF_SYM_TYPE_VOID 1 |
Definition at line 90 of file coff_specs.h.
#define COFF_SYM_TYPE_WORD 13 |
Definition at line 102 of file coff_specs.h.
RZ_PACKED | ( | struct coff_hdr { ut16 f_magic;ut16 f_nscns;ut32 f_timdat;ut32 f_symptr;ut32 f_nsyms;ut16 f_opthdr;ut16 f_flags;} | ) |
RZ_PACKED | ( | struct coff_opt_hdr { ut16 magic;ut16 vstamp;ut32 tsize;ut32 dsize;ut32 bsize;ut32 entry;ut32 text_start;ut32 data_start;} | ) |
RZ_PACKED | ( | struct coff_scn_hdr { char s_name[8];ut32 s_paddr;ut32 s_vaddr;ut32 s_size;ut32 s_scnptr;ut32 s_relptr;ut32 s_lnnoptr;ut16 s_nreloc;ut16 s_nlnno;ut32 s_flags;} | ) |