Annotation of 43BSDTahoe/etc/etc.tahoe/dlmpcc/scnhdr.h, revision 1.1.1.1

1.1       root        1: /*     scnhdr.h        1.1     87/11/15        */
                      2: /*     @(#)scnhdr.h    2.2 12/15/82    */
                      3: 
                      4: struct scnhdr {
                      5:        char            s_name[8];      /* section name */
                      6:        long            s_paddr;        /* physical address */
                      7:        long            s_vaddr;        /* virtual address */
                      8:        long            s_size;         /* section size */
                      9:        long            s_scnptr;       /* file ptr to raw data for section */
                     10:        long            s_relptr;       /* file ptr to relocation */
                     11:        long            s_lnnoptr;      /* file ptr to line numbers */
                     12:        unsigned short  s_nreloc;       /* number of relocation entries */
                     13:        unsigned short  s_nlnno;        /* number of line number entries */
                     14:        long            s_flags;        /* flags */
                     15:        };
                     16: 
                     17: #define        SCNHDR  struct scnhdr
                     18: #define        SCNHSZ  sizeof(SCNHDR)
                     19: 
                     20: 
                     21: 
                     22: 
                     23: /*
                     24:  * Define constants for names of "special" sections
                     25:  */
                     26: 
                     27: #define _TEXT ".text"
                     28: #define _DATA ".data"
                     29: #define _BSS  ".bss"
                     30: #define _TV  ".tv"
                     31: 
                     32: 
                     33: 
                     34: 
                     35: /*
                     36:  * The low 4 bits of s_flags is used as a section "type"
                     37:  */
                     38: 
                     39: #define STYP_REG       0x00            /* "regular" section:
                     40:                                                allocated, relocated, loaded */
                     41: #define STYP_DSECT     0x01            /* "dummy" section:
                     42:                                                not allocated, relocated,
                     43:                                                not loaded */
                     44: #define STYP_NOLOAD    0x02            /* "noload" section:
                     45:                                                allocated, relocated,
                     46:                                                 not loaded */
                     47: #define STYP_GROUP     0x04            /* "grouped" section:
                     48:                                                formed of input sections */
                     49: #define STYP_PAD       0x08            /* "padding" section:
                     50:                                                not allocated, not relocated,
                     51:                                                 loaded */
                     52: #define STYP_COPY      0x10            /* "copy" section:
                     53:                                                for decision function used
                     54:                                                by field update;  not
                     55:                                                allocated, not relocated,
                     56:                                                loaded;  reloc & lineno
                     57:                                                entries processed normally */
                     58: #define        STYP_TEXT       0x20            /* section contains text only */
                     59: #define STYP_DATA      0x40            /* section contains data only */
                     60: #define STYP_BSS       0x80            /* section contains bss only */
                     61: 
                     62: /*
                     63:  *  In a minimal file or an update file, a new function
                     64:  *  (as compared with a replaced function) is indicated by S_NEWFCN
                     65:  */
                     66: 
                     67: #define S_NEWFCN  0x10
                     68: 
                     69: /*
                     70:  * In 3b Update Files (output of ogen), sections which appear in SHARED
                     71:  * segments of the Pfile will have the S_SHRSEG flag set by ogen, to inform
                     72:  * dufr that updating 1 copy of the proc. will update all process invocations.
                     73:  */
                     74: 
                     75: #define S_SHRSEG       0x20
                     76: 
                     77: 
                     78: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.