diff options
author | cvs2svn <> | 2001-02-28 13:11:37 +0300 |
---|---|---|
committer | cvs2svn <> | 2001-02-28 13:11:37 +0300 |
commit | 6d6ce55b923ffc11c17992811dd74e28866da49e (patch) | |
tree | d58254df6eb244016cb07ea901d29683a4de5ed6 /include/coff/pe.h | |
parent | 0bd942aeb2c83f35d2f51ccdd0f36670f7896676 (diff) |
This commit was manufactured by cvs2svn to create tag 'x86_64versiong3'.x86_64versiong3
Sprout from binutils-2_11-branch 2001-01-24 20:09:38 UTC cvs2svn 'This commit was manufactured by cvs2svn to create branch 'binutils-'
Cherrypick from master 2001-02-28 10:11:36 UTC Phil Blundell <philb@gnu.org> '2001-02-27 Philip Blundell <pb@futuretv.com>':
COPYING.NEWLIB
ChangeLog
config.guess
config.sub
config/ChangeLog
config/mh-s390pic
config/mt-s390pic
configure
configure.in
include/ChangeLog
include/coff/ChangeLog
include/coff/pe.h
include/demangle.h
include/dis-asm.h
include/elf/ChangeLog
include/elf/arm.h
include/elf/common.h
include/elf/s390.h
include/opcode/ChangeLog
include/opcode/cgen.h
include/opcode/i386.h
include/opcode/mips.h
include/opcode/pdp11.h
include/opcode/s390.h
ltcf-c.sh
ltcf-cxx.sh
ltcf-gcj.sh
ltconfig
Diffstat (limited to 'include/coff/pe.h')
-rw-r--r-- | include/coff/pe.h | 43 |
1 files changed, 41 insertions, 2 deletions
diff --git a/include/coff/pe.h b/include/coff/pe.h index f2c022ea7..7f1547487 100644 --- a/include/coff/pe.h +++ b/include/coff/pe.h @@ -125,6 +125,45 @@ #undef FILNMLEN #define FILNMLEN 18 /* # characters in a file name. */ +struct external_PEI_DOS_hdr +{ + /* DOS header fields - always at offset zero in the EXE file. */ + char e_magic[2]; /* Magic number, 0x5a4d. */ + char e_cblp[2]; /* Bytes on last page of file, 0x90. */ + char e_cp[2]; /* Pages in file, 0x3. */ + char e_crlc[2]; /* Relocations, 0x0. */ + char e_cparhdr[2]; /* Size of header in paragraphs, 0x4. */ + char e_minalloc[2]; /* Minimum extra paragraphs needed, 0x0. */ + char e_maxalloc[2]; /* Maximum extra paragraphs needed, 0xFFFF. */ + char e_ss[2]; /* Initial (relative) SS value, 0x0. */ + char e_sp[2]; /* Initial SP value, 0xb8. */ + char e_csum[2]; /* Checksum, 0x0. */ + char e_ip[2]; /* Initial IP value, 0x0. */ + char e_cs[2]; /* Initial (relative) CS value, 0x0. */ + char e_lfarlc[2]; /* File address of relocation table, 0x40. */ + char e_ovno[2]; /* Overlay number, 0x0. */ + char e_res[4][2]; /* Reserved words, all 0x0. */ + char e_oemid[2]; /* OEM identifier (for e_oeminfo), 0x0. */ + char e_oeminfo[2]; /* OEM information; e_oemid specific, 0x0. */ + char e_res2[10][2]; /* Reserved words, all 0x0. */ + char e_lfanew[4]; /* File address of new exe header, usually 0x80. */ + char dos_message[16][4]; /* Other stuff, always follow DOS header. */ +}; + +struct external_PEI_IMAGE_hdr +{ + char nt_signature[4]; /* required NT signature, 0x4550. */ + + /* From standard header. */ + char f_magic[2]; /* Magic number. */ + char f_nscns[2]; /* Number of sections. */ + char f_timdat[4]; /* Time & date stamp. */ + char f_symptr[4]; /* File pointer to symtab. */ + char f_nsyms[4]; /* Number of symtab entries. */ + char f_opthdr[2]; /* Sizeof(optional hdr). */ + char f_flags[2]; /* Flags. */ +}; + struct external_PEI_filehdr { /* DOS header fields - always at offset zero in the EXE file. */ @@ -240,8 +279,8 @@ typedef struct char NumberOfRvaAndSizes[4]; /* IMAGE_DATA_DIRECTORY DataDirectory[IMAGE_NUMBEROF_DIRECTORY_ENTRIES]; */ char DataDirectory[16][2][4]; /* 16 entries, 2 elements/entry, 4 chars. */ -} PEP64AOUTHDR; -#define PEP64AOUTSZ 240 +} PEPAOUTHDR; +#define PEPAOUTSZ 240 #undef E_FILNMLEN #define E_FILNMLEN 18 /* # characters in a file name. */ |