Changeset 36140 in vbox for trunk/src/recompiler/a.out.h
- Timestamp:
- Mar 3, 2011 1:48:16 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70322
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/recompiler/a.out.h
r33540 r36140 26 26 short f_magic; /* magic number */ 27 27 short f_nscns; /* number of sections */ 28 unsignedlong f_timdat; /* time & date stamp */29 unsignedlong f_symptr; /* file pointer to symtab */30 unsignedlong f_nsyms; /* number of symtab entries */28 host_ulong f_timdat; /* time & date stamp */ 29 host_ulong f_symptr; /* file pointer to symtab */ 30 host_ulong f_nsyms; /* number of symtab entries */ 31 31 short f_opthdr; /* sizeof(optional hdr) */ 32 32 short f_flags; /* flags */ … … 73 73 unsigned short magic; /* type of file */ 74 74 unsigned short vstamp; /* version stamp */ 75 unsignedlong tsize; /* text size in bytes, padded to FW bdry*/76 unsignedlong dsize; /* initialized data " " */77 unsignedlong bsize; /* uninitialized data " " */78 unsignedlong entry; /* entry pt. */79 unsignedlong text_start; /* base of text used for this file */80 unsignedlong data_start; /* base of data used for this file=75 host_ulong tsize; /* text size in bytes, padded to FW bdry*/ 76 host_ulong dsize; /* initialized data " " */ 77 host_ulong bsize; /* uninitialized data " " */ 78 host_ulong entry; /* entry pt. */ 79 host_ulong text_start; /* base of text used for this file */ 80 host_ulong data_start; /* base of data used for this file= 81 81 */ 82 82 } … … 104 104 struct external_scnhdr { 105 105 char s_name[8]; /* section name */ 106 unsignedlong s_paddr; /* physical address, offset106 host_ulong s_paddr; /* physical address, offset 107 107 of last addr in scn */ 108 unsignedlong s_vaddr; /* virtual address */109 unsignedlong s_size; /* section size */110 unsignedlong s_scnptr; /* file ptr to raw data for section */111 unsignedlong s_relptr; /* file ptr to relocation */112 unsignedlong s_lnnoptr; /* file ptr to line numbers */108 host_ulong s_vaddr; /* virtual address */ 109 host_ulong s_size; /* section size */ 110 host_ulong s_scnptr; /* file ptr to raw data for section */ 111 host_ulong s_relptr; /* file ptr to relocation */ 112 host_ulong s_lnnoptr; /* file ptr to line numbers */ 113 113 unsigned short s_nreloc; /* number of relocation entries */ 114 114 unsigned short s_nlnno; /* number of line number entries*/ 115 unsignedlong s_flags; /* flags */115 host_ulong s_flags; /* flags */ 116 116 }; 117 117 … … 137 137 struct external_lineno { 138 138 union { 139 unsignedlong l_symndx; /* function name symbol index, iff l_lnno 0 */140 unsignedlong l_paddr; /* (physical) address of line number */139 host_ulong l_symndx; /* function name symbol index, iff l_lnno 0 */ 140 host_ulong l_paddr; /* (physical) address of line number */ 141 141 } l_addr; 142 142 unsigned short l_lnno; /* line number */ … … 157 157 char e_name[E_SYMNMLEN]; 158 158 struct { 159 unsignedlong e_zeroes;160 unsignedlong e_offset;159 host_ulong e_zeroes; 160 host_ulong e_offset; 161 161 } e; 162 162 } e; 163 unsignedlong e_value;163 host_ulong e_value; 164 164 unsigned short e_scnum; 165 165 unsigned short e_type; … … 175 175 union external_auxent { 176 176 struct { 177 unsignedlong x_tagndx; /* str, un, or enum tag indx */177 host_ulong x_tagndx; /* str, un, or enum tag indx */ 178 178 union { 179 179 struct { … … 181 181 unsigned short x_size; /* str/union/array size */ 182 182 } x_lnsz; 183 unsignedlong x_fsize; /* size of function */183 host_ulong x_fsize; /* size of function */ 184 184 } x_misc; 185 185 union { 186 186 struct { /* if ISFCN, tag, or .bb */ 187 unsignedlong x_lnnoptr;/* ptr to fcn line # */188 unsignedlong x_endndx; /* entry ndx past block end */187 host_ulong x_lnnoptr;/* ptr to fcn line # */ 188 host_ulong x_endndx; /* entry ndx past block end */ 189 189 } x_fcn; 190 190 struct { /* if ISARY, up to 4 dimen. */ … … 198 198 char x_fname[E_FILNMLEN]; 199 199 struct { 200 unsignedlong x_zeroes;201 unsignedlong x_offset;200 host_ulong x_zeroes; 201 host_ulong x_offset; 202 202 } x_n; 203 203 } x_file; 204 204 205 205 struct { 206 unsignedlong x_scnlen; /* section length */206 host_ulong x_scnlen; /* section length */ 207 207 unsigned short x_nreloc; /* # relocation entries */ 208 208 unsigned short x_nlinno; /* # line numbers */ 209 unsignedlong x_checksum; /* section COMDAT checksum */209 host_ulong x_checksum; /* section COMDAT checksum */ 210 210 unsigned short x_associated;/* COMDAT associated section index */ 211 211 char x_comdat[1]; /* COMDAT selection number */ … … 213 213 214 214 struct { 215 unsignedlong x_tvfill; /* tv fill value */215 host_ulong x_tvfill; /* tv fill value */ 216 216 unsigned short x_tvlen; /* length of .tv */ 217 217 char x_tvran[2][2]; /* tv range */ … … 298 298 299 299 #define IMAGE_SCN_LNK_NRELOC_OVFL 0x01000000 /* Section contains extended relocations. */ 300 #define IMAGE_SCN_MEM_NOT_CACHED 0x04000000 /* Section is not cach eable.*/300 #define IMAGE_SCN_MEM_NOT_CACHED 0x04000000 /* Section is not cachable. */ 301 301 #define IMAGE_SCN_MEM_NOT_PAGED 0x08000000 /* Section is not pageable. */ 302 302 #define IMAGE_SCN_MEM_SHARED 0x10000000 /* Section is shareable. */ … … 345 345 unsigned short e_oeminfo; /* OEM information; e_oemid specific, 0x0 */ 346 346 char e_res2[10][2]; /* Reserved words, all 0x0 */ 347 unsignedlong e_lfanew; /* File address of new exe header, 0x80 */347 host_ulong e_lfanew; /* File address of new exe header, 0x80 */ 348 348 char dos_message[16][4]; /* other stuff, always follow DOS header */ 349 349 unsigned int nt_signature; /* required NT signature, 0x4550 */ … … 353 353 unsigned short f_magic; /* magic number */ 354 354 unsigned short f_nscns; /* number of sections */ 355 unsignedlong f_timdat; /* time & date stamp */356 unsignedlong f_symptr; /* file pointer to symtab */357 unsignedlong f_nsyms; /* number of symtab entries */355 host_ulong f_timdat; /* time & date stamp */ 356 host_ulong f_symptr; /* file pointer to symtab */ 357 host_ulong f_nsyms; /* number of symtab entries */ 358 358 unsigned short f_opthdr; /* sizeof(optional hdr) */ 359 359 unsigned short f_flags; /* flags */ … … 371 371 unsigned short magic; /* type of file */ 372 372 unsigned short vstamp; /* version stamp */ 373 unsignedlong tsize; /* text size in bytes, padded to FW bdry*/374 unsignedlong dsize; /* initialized data " " */375 unsignedlong bsize; /* uninitialized data " " */376 unsignedlong entry; /* entry pt. */377 unsignedlong text_start; /* base of text used for this file */378 unsignedlong data_start; /* base of all data used for this file */373 host_ulong tsize; /* text size in bytes, padded to FW bdry*/ 374 host_ulong dsize; /* initialized data " " */ 375 host_ulong bsize; /* uninitialized data " " */ 376 host_ulong entry; /* entry pt. */ 377 host_ulong text_start; /* base of text used for this file */ 378 host_ulong data_start; /* base of all data used for this file */ 379 379 380 380 /* NT extra fields; see internal.h for descriptions */ 381 unsignedlong ImageBase;382 unsignedlong SectionAlignment;383 unsignedlong FileAlignment;381 host_ulong ImageBase; 382 host_ulong SectionAlignment; 383 host_ulong FileAlignment; 384 384 unsigned short MajorOperatingSystemVersion; 385 385 unsigned short MinorOperatingSystemVersion; … … 389 389 unsigned short MinorSubsystemVersion; 390 390 char Reserved1[4]; 391 unsignedlong SizeOfImage;392 unsignedlong SizeOfHeaders;393 unsignedlong CheckSum;391 host_ulong SizeOfImage; 392 host_ulong SizeOfHeaders; 393 host_ulong CheckSum; 394 394 unsigned short Subsystem; 395 395 unsigned short DllCharacteristics; 396 unsignedlong SizeOfStackReserve;397 unsignedlong SizeOfStackCommit;398 unsignedlong SizeOfHeapReserve;399 unsignedlong SizeOfHeapCommit;400 unsignedlong LoaderFlags;401 unsignedlong NumberOfRvaAndSizes;396 host_ulong SizeOfStackReserve; 397 host_ulong SizeOfStackCommit; 398 host_ulong SizeOfHeapReserve; 399 host_ulong SizeOfHeapCommit; 400 host_ulong LoaderFlags; 401 host_ulong NumberOfRvaAndSizes; 402 402 /* IMAGE_DATA_DIRECTORY DataDirectory[IMAGE_NUMBEROF_DIRECTORY_ENTRIES]; */ 403 403 char DataDirectory[16][2][4]; /* 16 entries, 2 elements/entry, 4 chars */
Note:
See TracChangeset
for help on using the changeset viewer.