Back to index

cell-binutils  2.17cvs20070401
Classes | Defines
pe.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  external_PEI_DOS_hdr
struct  external_PEI_IMAGE_hdr
struct  external_PEI_filehdr
struct  PEAOUTHDR
struct  PEPAOUTHDR

Defines

#define IMAGE_FILE_RELOCS_STRIPPED   0x0001
#define IMAGE_FILE_EXECUTABLE_IMAGE   0x0002
#define IMAGE_FILE_LINE_NUMS_STRIPPED   0x0004
#define IMAGE_FILE_LOCAL_SYMS_STRIPPED   0x0008
#define IMAGE_FILE_AGGRESSIVE_WS_TRIM   0x0010
#define IMAGE_FILE_LARGE_ADDRESS_AWARE   0x0020
#define IMAGE_FILE_16BIT_MACHINE   0x0040
#define IMAGE_FILE_BYTES_REVERSED_LO   0x0080
#define IMAGE_FILE_32BIT_MACHINE   0x0100
#define IMAGE_FILE_DEBUG_STRIPPED   0x0200
#define IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP   0x0400
#define IMAGE_FILE_NET_RUN_FROM_SWAP   0x0800
#define IMAGE_FILE_SYSTEM   0x1000
#define IMAGE_FILE_DLL   0x2000
#define IMAGE_FILE_UP_SYSTEM_ONLY   0x4000
#define IMAGE_FILE_BYTES_REVERSED_HI   0x8000
#define IMAGE_SCN_MEM_DISCARDABLE   0x02000000
#define IMAGE_SCN_MEM_EXECUTE   0x20000000
#define IMAGE_SCN_MEM_READ   0x40000000
#define IMAGE_SCN_MEM_WRITE   0x80000000
#define IMAGE_SCN_TYPE_NO_PAD   0x00000008 /* Reserved. */
#define IMAGE_SCN_CNT_CODE   0x00000020 /* Section contains code. */
#define IMAGE_SCN_CNT_INITIALIZED_DATA   0x00000040 /* Section contains initialized data. */
#define IMAGE_SCN_CNT_UNINITIALIZED_DATA   0x00000080 /* Section contains uninitialized data. */
#define IMAGE_SCN_LNK_OTHER   0x00000100 /* Reserved. */
#define IMAGE_SCN_LNK_INFO   0x00000200 /* Section contains comments or some other type of information. */
#define IMAGE_SCN_LNK_REMOVE   0x00000800 /* Section contents will not become part of image. */
#define IMAGE_SCN_LNK_COMDAT   0x00001000 /* Section contents comdat. */
#define IMAGE_SCN_MEM_FARDATA   0x00008000
#define IMAGE_SCN_MEM_PURGEABLE   0x00020000
#define IMAGE_SCN_MEM_16BIT   0x00020000
#define IMAGE_SCN_MEM_LOCKED   0x00040000
#define IMAGE_SCN_MEM_PRELOAD   0x00080000
#define IMAGE_SCN_ALIGN_1BYTES   0x00100000
#define IMAGE_SCN_ALIGN_2BYTES   0x00200000
#define IMAGE_SCN_ALIGN_4BYTES   0x00300000
#define IMAGE_SCN_ALIGN_8BYTES   0x00400000
#define IMAGE_SCN_ALIGN_16BYTES   0x00500000 /* Default alignment if no others are specified. */
#define IMAGE_SCN_ALIGN_32BYTES   0x00600000
#define IMAGE_SCN_ALIGN_64BYTES   0x00700000
#define IMAGE_SCN_LNK_NRELOC_OVFL   0x01000000 /* Section contains extended relocations. */
#define IMAGE_SCN_MEM_NOT_CACHED   0x04000000 /* Section is not cachable. */
#define IMAGE_SCN_MEM_NOT_PAGED   0x08000000 /* Section is not pageable. */
#define IMAGE_SCN_MEM_SHARED   0x10000000 /* Section is shareable. */
#define IMAGE_COMDAT_SELECT_NODUPLICATES   (1) /* Warn if duplicates. */
#define IMAGE_COMDAT_SELECT_ANY   (2) /* No warning. */
#define IMAGE_COMDAT_SELECT_SAME_SIZE   (3) /* Warn if different size. */
#define IMAGE_COMDAT_SELECT_EXACT_MATCH   (4) /* Warn if different. */
#define IMAGE_COMDAT_SELECT_ASSOCIATIVE   (5) /* Base on other section. */
#define IMAGE_FILE_MACHINE_UNKNOWN   0x0000
#define IMAGE_FILE_MACHINE_ALPHA   0x0184
#define IMAGE_FILE_MACHINE_ALPHA64   0x0284
#define IMAGE_FILE_MACHINE_AM33   0x01d3
#define IMAGE_FILE_MACHINE_AMD64   0x8664
#define IMAGE_FILE_MACHINE_ARM   0x01c0
#define IMAGE_FILE_MACHINE_AXP64   IMAGE_FILE_MACHINE_ALPHA64
#define IMAGE_FILE_MACHINE_CEE   0xc0ee
#define IMAGE_FILE_MACHINE_CEF   0x0cef
#define IMAGE_FILE_MACHINE_EBC   0x0ebc
#define IMAGE_FILE_MACHINE_I386   0x014c
#define IMAGE_FILE_MACHINE_IA64   0x0200
#define IMAGE_FILE_MACHINE_M32R   0x9041
#define IMAGE_FILE_MACHINE_M68K   0x0268
#define IMAGE_FILE_MACHINE_MIPS16   0x0266
#define IMAGE_FILE_MACHINE_MIPSFPU   0x0366
#define IMAGE_FILE_MACHINE_MIPSFPU16   0x0466
#define IMAGE_FILE_MACHINE_POWERPC   0x01f0
#define IMAGE_FILE_MACHINE_POWERPCFP   0x01f1
#define IMAGE_FILE_MACHINE_R10000   0x0168
#define IMAGE_FILE_MACHINE_R3000   0x0162
#define IMAGE_FILE_MACHINE_R4000   0x0166
#define IMAGE_FILE_MACHINE_SH3   0x01a2
#define IMAGE_FILE_MACHINE_SH3DSP   0x01a3
#define IMAGE_FILE_MACHINE_SH3E   0x01a4
#define IMAGE_FILE_MACHINE_SH4   0x01a6
#define IMAGE_FILE_MACHINE_SH5   0x01a8
#define IMAGE_FILE_MACHINE_THUMB   0x01c2
#define IMAGE_FILE_MACHINE_TRICORE   0x0520
#define IMAGE_FILE_MACHINE_WCEMIPSV2   0x0169
#define IMAGE_FILE_MACHINE_AMD64   0x8664
#define IMAGE_SUBSYSTEM_UNKNOWN   0
#define IMAGE_SUBSYSTEM_NATIVE   1
#define IMAGE_SUBSYSTEM_WINDOWS_GUI   2
#define IMAGE_SUBSYSTEM_WINDOWS_CUI   3
#define IMAGE_SUBSYSTEM_POSIX_CUI   7
#define IMAGE_SUBSYSTEM_WINDOWS_CE_GUI   9
#define IMAGE_SUBSYSTEM_EFI_APPLICATION   10
#define IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER   11
#define IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER   12
#define IMAGE_SUBSYSTEM_EFI_ROM   13
#define IMAGE_SUBSYSTEM_XBOX   14
#define DOSMAGIC   0x5a4d
#define NT_SIGNATURE   0x00004550
#define FILNMLEN   18 /* # characters in a file name. */
#define AOUTSZ   (AOUTHDRSZ + 196)
#define PEPAOUTSZ   240
#define E_FILNMLEN   18 /* # characters in a file name. */
#define IMPORT_CODE   0
#define IMPORT_DATA   1
#define IMPORT_CONST   2
#define IMPORT_ORDINAL   0
#define IMPORT_NAME   1
#define IMPORT_NAME_NOPREFIX   2
#define IMPORT_NAME_UNDECORATE   3
#define IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY   1
#define IMAGE_WEAK_EXTERN_SEARCH_LIBRARY   2
#define IMAGE_WEAK_EXTERN_SEARCH_ALIAS   3

Class Documentation

struct external_PEI_DOS_hdr

Definition at line 145 of file pe.h.

Class Members
char dos_message
char e_cblp
char e_cp
char e_cparhdr
char e_crlc
char e_cs
char e_csum
char e_ip
char e_lfanew
char e_lfarlc
char e_magic
char e_maxalloc
char e_minalloc
char e_oemid
char e_oeminfo
char e_ovno
char e_res
char e_res2
char e_sp
char e_ss
struct external_PEI_IMAGE_hdr

Definition at line 170 of file pe.h.

Class Members
char f_flags
char f_magic
char f_nscns
char f_nsyms
char f_opthdr
char f_symptr
char f_timdat
char nt_signature
struct external_PEI_filehdr

Definition at line 184 of file pe.h.

Class Members
char dos_message
char e_cblp
char e_cp
char e_cparhdr
char e_crlc
char e_cs
char e_csum
char e_ip
char e_lfanew
char e_lfarlc
char e_magic
char e_maxalloc
char e_minalloc
char e_oemid
char e_oeminfo
char e_ovno
char e_res
char e_res2
char e_sp
char e_ss
char f_flags
char f_magic
char f_nscns
char f_nsyms
char f_opthdr
char f_symptr
char f_timdat
char nt_signature
struct PEAOUTHDR

Definition at line 236 of file pe.h.

Collaboration diagram for PEAOUTHDR:
Class Members
char CheckSum
char DataDirectory
char DllCharacteristics
char FileAlignment
char ImageBase
char LoaderFlags
char MajorImageVersion
char MajorOperatingSystemVersion
char MajorSubsystemVersion
char MinorImageVersion
char MinorOperatingSystemVersion
char MinorSubsystemVersion
char NumberOfRvaAndSizes
char Reserved1
char SectionAlignment
char SizeOfHeaders
char SizeOfHeapCommit
char SizeOfHeapReserve
char SizeOfImage
char SizeOfStackCommit
char SizeOfStackReserve
AOUTHDR standard
char Subsystem
struct PEPAOUTHDR

Definition at line 272 of file pe.h.

Collaboration diagram for PEPAOUTHDR:
Class Members
char CheckSum
char DataDirectory
char DllCharacteristics
char FileAlignment
char ImageBase
char LoaderFlags
char MajorImageVersion
char MajorOperatingSystemVersion
char MajorSubsystemVersion
char MinorImageVersion
char MinorOperatingSystemVersion
char MinorSubsystemVersion
char NumberOfRvaAndSizes
char Reserved1
char SectionAlignment
char SizeOfHeaders
char SizeOfHeapCommit
char SizeOfHeapReserve
char SizeOfImage
char SizeOfStackCommit
char SizeOfStackReserve
AOUTHDR standard
char Subsystem

Define Documentation

#define AOUTSZ   (AOUTHDRSZ + 196)

Definition at line 267 of file pe.h.

#define DOSMAGIC   0x5a4d

Definition at line 137 of file pe.h.

#define E_FILNMLEN   18 /* # characters in a file name. */

Definition at line 312 of file pe.h.

#define FILNMLEN   18 /* # characters in a file name. */

Definition at line 143 of file pe.h.

#define IMAGE_COMDAT_SELECT_ANY   (2) /* No warning. */

Definition at line 85 of file pe.h.

#define IMAGE_COMDAT_SELECT_ASSOCIATIVE   (5) /* Base on other section. */

Definition at line 88 of file pe.h.

#define IMAGE_COMDAT_SELECT_EXACT_MATCH   (4) /* Warn if different. */

Definition at line 87 of file pe.h.

#define IMAGE_COMDAT_SELECT_NODUPLICATES   (1) /* Warn if duplicates. */

Definition at line 84 of file pe.h.

#define IMAGE_COMDAT_SELECT_SAME_SIZE   (3) /* Warn if different size. */

Definition at line 86 of file pe.h.

#define IMAGE_FILE_16BIT_MACHINE   0x0040

Definition at line 30 of file pe.h.

#define IMAGE_FILE_32BIT_MACHINE   0x0100

Definition at line 32 of file pe.h.

#define IMAGE_FILE_AGGRESSIVE_WS_TRIM   0x0010

Definition at line 28 of file pe.h.

#define IMAGE_FILE_BYTES_REVERSED_HI   0x8000

Definition at line 39 of file pe.h.

#define IMAGE_FILE_BYTES_REVERSED_LO   0x0080

Definition at line 31 of file pe.h.

#define IMAGE_FILE_DEBUG_STRIPPED   0x0200

Definition at line 33 of file pe.h.

#define IMAGE_FILE_DLL   0x2000

Definition at line 37 of file pe.h.

#define IMAGE_FILE_EXECUTABLE_IMAGE   0x0002

Definition at line 25 of file pe.h.

#define IMAGE_FILE_LARGE_ADDRESS_AWARE   0x0020

Definition at line 29 of file pe.h.

#define IMAGE_FILE_LINE_NUMS_STRIPPED   0x0004

Definition at line 26 of file pe.h.

#define IMAGE_FILE_LOCAL_SYMS_STRIPPED   0x0008

Definition at line 27 of file pe.h.

#define IMAGE_FILE_MACHINE_ALPHA   0x0184

Definition at line 93 of file pe.h.

#define IMAGE_FILE_MACHINE_ALPHA64   0x0284

Definition at line 94 of file pe.h.

#define IMAGE_FILE_MACHINE_AM33   0x01d3

Definition at line 95 of file pe.h.

#define IMAGE_FILE_MACHINE_AMD64   0x8664

Definition at line 122 of file pe.h.

#define IMAGE_FILE_MACHINE_AMD64   0x8664

Definition at line 122 of file pe.h.

#define IMAGE_FILE_MACHINE_ARM   0x01c0

Definition at line 97 of file pe.h.

Definition at line 98 of file pe.h.

#define IMAGE_FILE_MACHINE_CEE   0xc0ee

Definition at line 99 of file pe.h.

#define IMAGE_FILE_MACHINE_CEF   0x0cef

Definition at line 100 of file pe.h.

#define IMAGE_FILE_MACHINE_EBC   0x0ebc

Definition at line 101 of file pe.h.

#define IMAGE_FILE_MACHINE_I386   0x014c

Definition at line 102 of file pe.h.

#define IMAGE_FILE_MACHINE_IA64   0x0200

Definition at line 103 of file pe.h.

#define IMAGE_FILE_MACHINE_M32R   0x9041

Definition at line 104 of file pe.h.

#define IMAGE_FILE_MACHINE_M68K   0x0268

Definition at line 105 of file pe.h.

#define IMAGE_FILE_MACHINE_MIPS16   0x0266

Definition at line 106 of file pe.h.

#define IMAGE_FILE_MACHINE_MIPSFPU   0x0366

Definition at line 107 of file pe.h.

#define IMAGE_FILE_MACHINE_MIPSFPU16   0x0466

Definition at line 108 of file pe.h.

#define IMAGE_FILE_MACHINE_POWERPC   0x01f0

Definition at line 109 of file pe.h.

#define IMAGE_FILE_MACHINE_POWERPCFP   0x01f1

Definition at line 110 of file pe.h.

#define IMAGE_FILE_MACHINE_R10000   0x0168

Definition at line 111 of file pe.h.

#define IMAGE_FILE_MACHINE_R3000   0x0162

Definition at line 112 of file pe.h.

#define IMAGE_FILE_MACHINE_R4000   0x0166

Definition at line 113 of file pe.h.

#define IMAGE_FILE_MACHINE_SH3   0x01a2

Definition at line 114 of file pe.h.

#define IMAGE_FILE_MACHINE_SH3DSP   0x01a3

Definition at line 115 of file pe.h.

#define IMAGE_FILE_MACHINE_SH3E   0x01a4

Definition at line 116 of file pe.h.

#define IMAGE_FILE_MACHINE_SH4   0x01a6

Definition at line 117 of file pe.h.

#define IMAGE_FILE_MACHINE_SH5   0x01a8

Definition at line 118 of file pe.h.

#define IMAGE_FILE_MACHINE_THUMB   0x01c2

Definition at line 119 of file pe.h.

#define IMAGE_FILE_MACHINE_TRICORE   0x0520

Definition at line 120 of file pe.h.

#define IMAGE_FILE_MACHINE_UNKNOWN   0x0000

Definition at line 92 of file pe.h.

#define IMAGE_FILE_MACHINE_WCEMIPSV2   0x0169

Definition at line 121 of file pe.h.

#define IMAGE_FILE_NET_RUN_FROM_SWAP   0x0800

Definition at line 35 of file pe.h.

#define IMAGE_FILE_RELOCS_STRIPPED   0x0001

Definition at line 24 of file pe.h.

Definition at line 34 of file pe.h.

#define IMAGE_FILE_SYSTEM   0x1000

Definition at line 36 of file pe.h.

#define IMAGE_FILE_UP_SYSTEM_ONLY   0x4000

Definition at line 38 of file pe.h.

#define IMAGE_SCN_ALIGN_16BYTES   0x00500000 /* Default alignment if no others are specified. */

Definition at line 73 of file pe.h.

#define IMAGE_SCN_ALIGN_1BYTES   0x00100000

Definition at line 69 of file pe.h.

#define IMAGE_SCN_ALIGN_2BYTES   0x00200000

Definition at line 70 of file pe.h.

#define IMAGE_SCN_ALIGN_32BYTES   0x00600000

Definition at line 74 of file pe.h.

#define IMAGE_SCN_ALIGN_4BYTES   0x00300000

Definition at line 71 of file pe.h.

#define IMAGE_SCN_ALIGN_64BYTES   0x00700000

Definition at line 75 of file pe.h.

#define IMAGE_SCN_ALIGN_8BYTES   0x00400000

Definition at line 72 of file pe.h.

#define IMAGE_SCN_CNT_CODE   0x00000020 /* Section contains code. */

Definition at line 53 of file pe.h.

#define IMAGE_SCN_CNT_INITIALIZED_DATA   0x00000040 /* Section contains initialized data. */

Definition at line 54 of file pe.h.

#define IMAGE_SCN_CNT_UNINITIALIZED_DATA   0x00000080 /* Section contains uninitialized data. */

Definition at line 55 of file pe.h.

#define IMAGE_SCN_LNK_COMDAT   0x00001000 /* Section contents comdat. */

Definition at line 60 of file pe.h.

#define IMAGE_SCN_LNK_INFO   0x00000200 /* Section contains comments or some other type of information. */

Definition at line 58 of file pe.h.

#define IMAGE_SCN_LNK_NRELOC_OVFL   0x01000000 /* Section contains extended relocations. */

Definition at line 77 of file pe.h.

#define IMAGE_SCN_LNK_OTHER   0x00000100 /* Reserved. */

Definition at line 57 of file pe.h.

#define IMAGE_SCN_LNK_REMOVE   0x00000800 /* Section contents will not become part of image. */

Definition at line 59 of file pe.h.

#define IMAGE_SCN_MEM_16BIT   0x00020000

Definition at line 65 of file pe.h.

#define IMAGE_SCN_MEM_DISCARDABLE   0x02000000

Definition at line 44 of file pe.h.

#define IMAGE_SCN_MEM_EXECUTE   0x20000000

Definition at line 45 of file pe.h.

#define IMAGE_SCN_MEM_FARDATA   0x00008000

Definition at line 62 of file pe.h.

#define IMAGE_SCN_MEM_LOCKED   0x00040000

Definition at line 66 of file pe.h.

#define IMAGE_SCN_MEM_NOT_CACHED   0x04000000 /* Section is not cachable. */

Definition at line 78 of file pe.h.

#define IMAGE_SCN_MEM_NOT_PAGED   0x08000000 /* Section is not pageable. */

Definition at line 79 of file pe.h.

#define IMAGE_SCN_MEM_PRELOAD   0x00080000

Definition at line 67 of file pe.h.

#define IMAGE_SCN_MEM_PURGEABLE   0x00020000

Definition at line 64 of file pe.h.

#define IMAGE_SCN_MEM_READ   0x40000000

Definition at line 46 of file pe.h.

#define IMAGE_SCN_MEM_SHARED   0x10000000 /* Section is shareable. */

Definition at line 80 of file pe.h.

#define IMAGE_SCN_MEM_WRITE   0x80000000

Definition at line 47 of file pe.h.

#define IMAGE_SCN_TYPE_NO_PAD   0x00000008 /* Reserved. */

Definition at line 51 of file pe.h.

Definition at line 130 of file pe.h.

Definition at line 131 of file pe.h.

#define IMAGE_SUBSYSTEM_EFI_ROM   13

Definition at line 133 of file pe.h.

Definition at line 132 of file pe.h.

#define IMAGE_SUBSYSTEM_NATIVE   1

Definition at line 125 of file pe.h.

#define IMAGE_SUBSYSTEM_POSIX_CUI   7

Definition at line 128 of file pe.h.

#define IMAGE_SUBSYSTEM_UNKNOWN   0

Definition at line 124 of file pe.h.

Definition at line 129 of file pe.h.

Definition at line 127 of file pe.h.

Definition at line 126 of file pe.h.

#define IMAGE_SUBSYSTEM_XBOX   14

Definition at line 134 of file pe.h.

Definition at line 328 of file pe.h.

Definition at line 327 of file pe.h.

Definition at line 326 of file pe.h.

#define IMPORT_CODE   0

Definition at line 315 of file pe.h.

#define IMPORT_CONST   2

Definition at line 317 of file pe.h.

#define IMPORT_DATA   1

Definition at line 316 of file pe.h.

#define IMPORT_NAME   1

Definition at line 321 of file pe.h.

#define IMPORT_NAME_NOPREFIX   2

Definition at line 322 of file pe.h.

#define IMPORT_NAME_UNDECORATE   3

Definition at line 323 of file pe.h.

#define IMPORT_ORDINAL   0

Definition at line 320 of file pe.h.

#define NT_SIGNATURE   0x00004550

Definition at line 138 of file pe.h.

#define PEPAOUTSZ   240

Definition at line 308 of file pe.h.