20
#define n_zeroes n.n.n_zeroes
21
#define n_offset n.n.n_offset
22
#define n_name n.n_name
24
#define C_EXT 0x0002 /* IMAGE_SYM_CLASS_EXTERNAL */
26
#define N_UNDEF (SHORT)0 /* Symbol is undefined or is common. */
33
WORD f_magic; /* magic number */
34
WORD f_nscns; /* number of sections */
35
DWORD f_timdat; /* time & date stamp */
36
DWORD f_symptr; /* file pointer to symtab */
37
DWORD f_nsyms; /* number of symtab entries */
38
WORD f_opthdr; /* sizeof(optional hdr) */
39
WORD f_flags; /* flags */
44
#define IMAGE_SIZEOF_SHORT_NAME 8
46
BYTE s_name[IMAGE_SIZEOF_SHORT_NAME];
48
DWORD s_paddr; /* physical address, aliased s_nlib */
49
DWORD s_vaddr; /* virtual address */
50
DWORD s_size; /* section size */
51
DWORD s_scnptr; /* file ptr to raw data for section */
52
DWORD s_relptr; /* file ptr to relocation */
53
DWORD s_lnnoptr; /* file ptr to line numbers */
54
WORD s_nreloc; /* number of relocation entries */
55
WORD s_nlnno; /* number of line number entries*/
56
DWORD s_flags; /* flags */
63
/* IMAGE_REL_I386_ABSOLUTE */
64
#define R_ABS 0x0000 /* absolute, no relocation is necessary */
65
/* IMAGE_REL_I386_DIR32 */
66
#define R_DIR32 0x0006 /* Direct 32-bit reference to the symbols virtual address */
67
/* IMAGE_REL_I386_REL32 */
68
#define R_PCRLONG 0x0014 /* 32-bit reference pc relative to the symbols virtual address */
72
/* _IMAGE_RELOCATION */
76
DWORD r_count; /* Set to the real count
77
when IMAGE_SCN_LNK_NRELOC_OVFL is set */
82
#define r_vaddr r.r_vaddr