From d27e9722db9ffe66a070989397c7537427d6b974 Mon Sep 17 00:00:00 2001 From: Nate Williams Date: Fri, 23 Dec 1994 22:32:48 +0000 Subject: [PATCH] Document some of the fields used by the new shlib code. Obtained from: NetBSD --- include/nlist.h | 7 ++++++- sys/sys/nlist_aout.h | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/include/nlist.h b/include/nlist.h index 11e0a43848f6..b80c0b21f717 100644 --- a/include/nlist.h +++ b/include/nlist.h @@ -36,6 +36,8 @@ * SUCH DAMAGE. * * @(#)nlist.h 8.2 (Berkeley) 1/21/94 + * + * $Id$ */ #ifndef _NLIST_H_ @@ -60,8 +62,11 @@ struct nlist { #define N_TEXT 0x04 /* text segment */ #define N_DATA 0x06 /* data segment */ #define N_BSS 0x08 /* bss segment */ +#define N_INDR 0x0a /* alias definition */ +#define N_SIZE 0x0c /* pseudo type, defines a symbol's size */ #define N_COMM 0x12 /* common reference */ -#define N_FN 0x1e /* file name */ +#define N_FN 0x1e /* file name (N_EXT on) */ +#define N_WARN 0x1e /* warning message (N_EXT off) */ #define N_EXT 0x01 /* external (global) bit, OR'ed in */ #define N_TYPE 0x1e /* mask for all the type bits */ diff --git a/sys/sys/nlist_aout.h b/sys/sys/nlist_aout.h index 11e0a43848f6..b80c0b21f717 100644 --- a/sys/sys/nlist_aout.h +++ b/sys/sys/nlist_aout.h @@ -36,6 +36,8 @@ * SUCH DAMAGE. * * @(#)nlist.h 8.2 (Berkeley) 1/21/94 + * + * $Id$ */ #ifndef _NLIST_H_ @@ -60,8 +62,11 @@ struct nlist { #define N_TEXT 0x04 /* text segment */ #define N_DATA 0x06 /* data segment */ #define N_BSS 0x08 /* bss segment */ +#define N_INDR 0x0a /* alias definition */ +#define N_SIZE 0x0c /* pseudo type, defines a symbol's size */ #define N_COMM 0x12 /* common reference */ -#define N_FN 0x1e /* file name */ +#define N_FN 0x1e /* file name (N_EXT on) */ +#define N_WARN 0x1e /* warning message (N_EXT off) */ #define N_EXT 0x01 /* external (global) bit, OR'ed in */ #define N_TYPE 0x1e /* mask for all the type bits */