VirtualBox

Changeset 36140 in vbox for trunk/src/recompiler/a.out.h


Ignore:
Timestamp:
Mar 3, 2011 1:48:16 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70322
Message:

rem: Re-synced to svn://svn.savannah.nongnu.org/qemu/trunk@5495 (repo UUID c046a42c-6fe2-441c-8c8c-71466251a162).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/a.out.h

    r33540 r36140  
    2626  short f_magic;        /* magic number                 */
    2727  short f_nscns;        /* number of sections           */
    28   unsigned long f_timdat;       /* time & date stamp            */
    29   unsigned long f_symptr;       /* file pointer to symtab       */
    30   unsigned long 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     */
    3131  short f_opthdr;       /* sizeof(optional hdr)         */
    3232  short f_flags;        /* flags                        */
     
    7373  unsigned short magic;         /* type of file                         */
    7474  unsigned short vstamp;        /* version stamp                        */
    75   unsigned long tsize;          /* text size in bytes, padded to FW bdry*/
    76   unsigned long dsize;          /* initialized data "  "                */
    77   unsigned long bsize;          /* uninitialized data "   "             */
    78   unsigned long entry;          /* entry pt.                            */
    79   unsigned long text_start;     /* base of text used for this file */
    80   unsigned long 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=
    8181 */
    8282}
     
    104104struct external_scnhdr {
    105105  char          s_name[8];      /* section name                 */
    106   unsigned long s_paddr;        /* physical address, offset
     106  host_ulong    s_paddr;        /* physical address, offset
    107107                                   of last addr in scn */
    108   unsigned long s_vaddr;        /* virtual address              */
    109   unsigned long s_size;         /* section size                 */
    110   unsigned long s_scnptr;       /* file ptr to raw data for section */
    111   unsigned long s_relptr;       /* file ptr to relocation       */
    112   unsigned long 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     */
    113113  unsigned short s_nreloc;      /* number of relocation entries */
    114114  unsigned short s_nlnno;       /* number of line number entries*/
    115   unsigned long s_flags;        /* flags                        */
     115  host_ulong    s_flags;        /* flags                        */
    116116};
    117117
     
    137137struct external_lineno {
    138138  union {
    139     unsigned long l_symndx; /* function name symbol index, iff l_lnno 0 */
    140     unsigned long 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    */
    141141  } l_addr;
    142142  unsigned short l_lnno;        /* line number          */
     
    157157    char e_name[E_SYMNMLEN];
    158158    struct {
    159       unsigned long e_zeroes;
    160       unsigned long e_offset;
     159      host_ulong e_zeroes;
     160      host_ulong e_offset;
    161161    } e;
    162162  } e;
    163   unsigned long e_value;
     163  host_ulong e_value;
    164164  unsigned short e_scnum;
    165165  unsigned short e_type;
     
    175175union external_auxent {
    176176  struct {
    177     unsigned long x_tagndx;     /* str, un, or enum tag indx */
     177    host_ulong x_tagndx;        /* str, un, or enum tag indx */
    178178    union {
    179179      struct {
     
    181181        unsigned short  x_size; /* str/union/array size */
    182182      } x_lnsz;
    183       unsigned long x_fsize;    /* size of function */
     183      host_ulong x_fsize;       /* size of function */
    184184    } x_misc;
    185185    union {
    186186      struct {                  /* if ISFCN, tag, or .bb */
    187         unsigned long x_lnnoptr;/* ptr to fcn line # */
    188         unsigned long 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 */
    189189      } x_fcn;
    190190      struct {                  /* if ISARY, up to 4 dimen. */
     
    198198    char x_fname[E_FILNMLEN];
    199199    struct {
    200       unsigned long x_zeroes;
    201       unsigned long x_offset;
     200      host_ulong x_zeroes;
     201      host_ulong x_offset;
    202202    } x_n;
    203203  } x_file;
    204204
    205205  struct {
    206     unsigned long x_scnlen;     /* section length */
     206    host_ulong x_scnlen;        /* section length */
    207207    unsigned short x_nreloc;    /* # relocation entries */
    208208    unsigned short x_nlinno;    /* # line numbers */
    209     unsigned long x_checksum;   /* section COMDAT checksum */
     209    host_ulong x_checksum;      /* section COMDAT checksum */
    210210    unsigned short x_associated;/* COMDAT associated section index */
    211211    char x_comdat[1];           /* COMDAT selection number */
     
    213213
    214214  struct {
    215     unsigned long x_tvfill;     /* tv fill value */
     215    host_ulong x_tvfill;        /* tv fill value */
    216216    unsigned short x_tvlen;     /* length of .tv */
    217217    char x_tvran[2][2];         /* tv range */
     
    298298
    299299#define IMAGE_SCN_LNK_NRELOC_OVFL            0x01000000  /* Section contains extended relocations. */
    300 #define IMAGE_SCN_MEM_NOT_CACHED             0x04000000  /* Section is not cacheable.              */
     300#define IMAGE_SCN_MEM_NOT_CACHED             0x04000000  /* Section is not cachable.               */
    301301#define IMAGE_SCN_MEM_NOT_PAGED              0x08000000  /* Section is not pageable.               */
    302302#define IMAGE_SCN_MEM_SHARED                 0x10000000  /* Section is shareable.                  */
     
    345345  unsigned short e_oeminfo;     /* OEM information; e_oemid specific, 0x0 */
    346346  char e_res2[10][2];           /* Reserved words, all 0x0 */
    347   unsigned long e_lfanew;       /* File address of new exe header, 0x80 */
     347  host_ulong e_lfanew;  /* File address of new exe header, 0x80 */
    348348  char dos_message[16][4];      /* other stuff, always follow DOS header */
    349349  unsigned int nt_signature;    /* required NT signature, 0x4550 */
     
    353353  unsigned short f_magic;       /* magic number                 */
    354354  unsigned short f_nscns;       /* number of sections           */
    355   unsigned long f_timdat;       /* time & date stamp            */
    356   unsigned long f_symptr;       /* file pointer to symtab       */
    357   unsigned long 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     */
    358358  unsigned short f_opthdr;      /* sizeof(optional hdr)         */
    359359  unsigned short f_flags;       /* flags                        */
     
    371371  unsigned short magic;         /* type of file                         */
    372372  unsigned short vstamp;        /* version stamp                        */
    373   unsigned long tsize;          /* text size in bytes, padded to FW bdry*/
    374   unsigned long dsize;          /* initialized data "  "                */
    375   unsigned long bsize;          /* uninitialized data "   "             */
    376   unsigned long entry;          /* entry pt.                            */
    377   unsigned long text_start;     /* base of text used for this file */
    378   unsigned long 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 */
    379379
    380380  /* NT extra fields; see internal.h for descriptions */
    381   unsigned long  ImageBase;
    382   unsigned long  SectionAlignment;
    383   unsigned long  FileAlignment;
     381  host_ulong  ImageBase;
     382  host_ulong  SectionAlignment;
     383  host_ulong  FileAlignment;
    384384  unsigned short  MajorOperatingSystemVersion;
    385385  unsigned short  MinorOperatingSystemVersion;
     
    389389  unsigned short  MinorSubsystemVersion;
    390390  char  Reserved1[4];
    391   unsigned long  SizeOfImage;
    392   unsigned long  SizeOfHeaders;
    393   unsigned long  CheckSum;
     391  host_ulong  SizeOfImage;
     392  host_ulong  SizeOfHeaders;
     393  host_ulong  CheckSum;
    394394  unsigned short Subsystem;
    395395  unsigned short DllCharacteristics;
    396   unsigned long  SizeOfStackReserve;
    397   unsigned long  SizeOfStackCommit;
    398   unsigned long  SizeOfHeapReserve;
    399   unsigned long  SizeOfHeapCommit;
    400   unsigned long  LoaderFlags;
    401   unsigned long  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;
    402402  /* IMAGE_DATA_DIRECTORY DataDirectory[IMAGE_NUMBEROF_DIRECTORY_ENTRIES]; */
    403403  char  DataDirectory[16][2][4]; /* 16 entries, 2 elements/entry, 4 chars */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette