1: /*
   2:  * Copyright (c) 1980 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)nlist.h	5.1 (Berkeley) 5/30/85
   7:  */
   8: 
   9: /*
  10:  * Format of a symbol table entry; this file is included by <a.out.h>
  11:  * and should be used if you aren't interested the a.out header
  12:  * or relocation information.
  13:  */
  14: struct  nlist {
  15:     char    *n_name;    /* for use when in-core */
  16:     unsigned char n_type;   /* type flag, i.e. N_TEXT etc; see below */
  17:     char    n_other;    /* unused */
  18:     short   n_desc;     /* see <stab.h> */
  19:     unsigned long n_value;  /* value of this symbol (or sdb offset) */
  20: };
  21: #define n_hash  n_desc      /* used internally by ld */
  22: 
  23: /*
  24:  * Simple values for n_type.
  25:  */
  26: #define N_UNDF  0x0     /* undefined */
  27: #define N_ABS   0x2     /* absolute */
  28: #define N_TEXT  0x4     /* text */
  29: #define N_DATA  0x6     /* data */
  30: #define N_BSS   0x8     /* bss */
  31: #define N_COMM  0x12        /* common (internal to ld) */
  32: #define N_FN    0x1f        /* file name symbol */
  33: 
  34: #define N_EXT   01      /* external bit, or'ed in */
  35: #define N_TYPE  0x1e        /* mask for all the type bits */
  36: 
  37: /*
  38:  * Sdb entries have some of the N_STAB bits set.
  39:  * These are given in <stab.h>
  40:  */
  41: #define N_STAB  0xe0        /* if any of these bits set, a SDB entry */
  42: 
  43: /*
  44:  * Format for namelist values.
  45:  */
  46: #define N_FORMAT    "%08x"

Defined struct's

Defined macros

N_ABS defined in line 27; used 1 times
N_BSS defined in line 30; never used
N_COMM defined in line 31; never used
N_DATA defined in line 29; never used
N_EXT defined in line 34; never used
N_FN defined in line 32; never used
N_FORMAT defined in line 46; never used
N_STAB defined in line 41; never used
N_TEXT defined in line 28; never used
N_TYPE defined in line 35; used 1 times
N_UNDF defined in line 26; never used
n_hash defined in line 21; never used

Usage of this include

Last modified: 1985-06-19
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1181
Valid CSS Valid XHTML 1.0 Strict