Main Page   Compound List   File List   Compound Members   File Members  

coff.h

Go to the documentation of this file.
00001 /* coff.h
00002  *   Data structures that describe the MIPS COFF format.
00003  */
00004 
00005 struct filehdr {
00006         unsigned short  f_magic;        /* magic number */
00007         unsigned short  f_nscns;        /* number of sections */
00008         long            f_timdat;       /* time & date stamp */
00009         long            f_symptr;       /* file pointer to symbolic header */
00010         long            f_nsyms;        /* sizeof(symbolic hdr) */
00011         unsigned short  f_opthdr;       /* sizeof(optional hdr) */
00012         unsigned short  f_flags;        /* flags */
00013       };
00014 
00015 #define  MIPSELMAGIC    0x0162
00016 
00017 #define OMAGIC  0407
00018 #define SOMAGIC 0x0701
00019 
00020 typedef struct aouthdr {
00021         short   magic;          /* see above                            */
00022         short   vstamp;         /* version stamp                        */
00023         long    tsize;          /* text size in bytes, padded to DW bdry*/
00024         long    dsize;          /* initialized data "  "                */
00025         long    bsize;          /* uninitialized data "   "             */
00026         long    entry;          /* entry pt.                            */
00027         long    text_start;     /* base of text used for this file      */
00028         long    data_start;     /* base of data used for this file      */
00029         long    bss_start;      /* base of bss used for this file       */
00030         long    gprmask;        /* general purpose register mask        */
00031         long    cprmask[4];     /* co-processor register masks          */
00032         long    gp_value;       /* the gp value used for this object    */
00033       } AOUTHDR;
00034 #define AOUTHSZ sizeof(AOUTHDR)
00035  
00036 
00037 struct scnhdr {
00038         char            s_name[8];      /* section name */
00039         long            s_paddr;        /* physical address, aliased s_nlib */
00040         long            s_vaddr;        /* virtual address */
00041         long            s_size;         /* section size */
00042         long            s_scnptr;       /* file ptr to raw data for section */
00043         long            s_relptr;       /* file ptr to relocation */
00044         long            s_lnnoptr;      /* file ptr to gp histogram */
00045         unsigned short  s_nreloc;       /* number of relocation entries */
00046         unsigned short  s_nlnno;        /* number of gp histogram entries */
00047         long            s_flags;        /* flags */
00048       };
00049  

Generated on Mon Feb 10 09:54:44 2003 for nachos by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002
The University of Southern California does not screen or control the content on this website and thus does not guarantee the accuracy, integrity, or quality of such content. All content on this website is provided by and is the sole responsibility of the person from which such content originated, and such content does not necessarily reflect the opinions of the University administration or the Board of Trustees