|
|
1.1 ! root 1: /* ! 2: * Mach Operating System ! 3: * Copyright (c) 1991 Carnegie Mellon University ! 4: * All Rights Reserved. ! 5: * ! 6: * Permission to use, copy, modify and distribute this software and its ! 7: * documentation is hereby granted, provided that both the copyright ! 8: * notice and this permission notice appear in all copies of the ! 9: * software, derivative works or modified versions, and any portions ! 10: * thereof, and that both notices appear in supporting documentation. ! 11: * ! 12: * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" ! 13: * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR ! 14: * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. ! 15: * ! 16: * Carnegie Mellon requests users of this software to return to ! 17: * ! 18: * Software Distribution Coordinator or [email protected] ! 19: * School of Computer Science ! 20: * Carnegie Mellon University ! 21: * Pittsburgh PA 15213-3890 ! 22: * ! 23: * any improvements or extensions that they make and grant Carnegie Mellon ! 24: * the rights to redistribute these changes. ! 25: */ ! 26: /* ! 27: * nlist.h - symbol table entry structure for an a.out file ! 28: * derived from FSF's a.out.gnu.h ! 29: * ! 30: */ ! 31: ! 32: #ifndef _DDB_NLIST_H_ ! 33: #define _DDB_NLIST_H_ ! 34: ! 35: struct nlist { ! 36: union n_un { ! 37: char *n_name; /* symbol name */ ! 38: long n_strx; /* index into file string table */ ! 39: } n_un; ! 40: unsigned char n_type; /* type flag, i.e. N_TEXT etc; see below */ ! 41: unsigned char n_other; /* machdep uses */ ! 42: short n_desc; /* see <stab.h> */ ! 43: #if alpha ! 44: int n_pad; /* alignment, used to carry framesize info */ ! 45: #endif ! 46: vm_offset_t n_value; /* value of this symbol (or sdb offset) */ ! 47: }; ! 48: ! 49: /* ! 50: * Simple values for n_type. ! 51: */ ! 52: #define N_UNDF 0 /* undefined */ ! 53: #define N_ABS 2 /* absolute */ ! 54: #define N_TEXT 4 /* text */ ! 55: #define N_DATA 6 /* data */ ! 56: #define N_BSS 8 /* bss */ ! 57: #define N_FN 0x1f /* file name symbol */ ! 58: #define N_EXT 1 /* external bit, or'ed in */ ! 59: #define N_TYPE 0x1e /* mask for all the type bits */ ! 60: #define N_STAB 0xe0 /* if any of these bits set, a SDB entry */ ! 61: ! 62: ! 63: #endif /* _DDB_NLIST_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.