Annotation of researchv10no/cmd/PDP11/a.out.h, revision 1.1.1.1

1.1       root        1: /*     pdp11 format a.out.h
                      2:  *     god: made int's and unsigned's short
                      3:  */
                      4: struct exec {  /* a.out header */
                      5:        short           a_magic;        /* magic number */
                      6:        unsigned short  a_text;         /* size of text segment */
                      7:        unsigned short  a_data;         /* size of initialized data */
                      8:        unsigned short  a_bss;          /* size of unitialized data */
                      9:        unsigned short  a_syms;         /* size of symbol table */
                     10:        unsigned short  a_entry;        /* entry point */
                     11:        unsigned short  a_unused;       /* not used */
                     12:        unsigned short  a_flag;         /* relocation info stripped */
                     13: };
                     14: 
                     15: #define        A_MAGIC1        0407            /* normal */
                     16: #define        A_MAGIC2        0410            /* read-only text */
                     17: #define        A_MAGIC3        0411            /* separated I&D */
                     18: #define        A_MAGIC4        0405            /* overlay */
                     19: 
                     20: struct nlist { /* symbol table entry */
                     21:        char            n_name[8];      /* symbol name */
                     22:        short           n_type;         /* type flag */
                     23:        unsigned short  n_value;        /* value */
                     24: };
                     25: 
                     26:                /* values for type flag */
                     27: #define        N_UNDF  0       /* undefined */
                     28: #define        N_ABS   01      /* absolute */
                     29: #define        N_TEXT  02      /* text symbol */
                     30: #define        N_DATA  03      /* data symbol */
                     31: #define        N_BSS   04      /* bss symbol */
                     32: #define        N_TYPE  037
                     33: #define        N_REG   024     /* register name */
                     34: #define        N_FN    037     /* file name symbol */
                     35: #define        N_EXT   040     /* external bit, or'ed in */
                     36: #define        FORMAT  "%.6o"  /* to print a value */

unix.superglobalmegacorp.com

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