diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-07-08 18:13:15 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-07-08 18:13:15 +0000 |
commit | b596a3f0c12232afe69b2aff13005762e67161ab (patch) | |
tree | ce9cde907ece558d7593de777dd871445de1a3f5 /sys/arch | |
parent | 1121eeafd9a61b3fd90917fc23cd1299dc437a78 (diff) |
set N_TEXT when appropriate. get rid of nlist.h inclusion.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/alpha/stand/loadfile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/alpha/stand/loadfile.c b/sys/arch/alpha/stand/loadfile.c index 81b94a4f4a1..d1d2f925b39 100644 --- a/sys/arch/alpha/stand/loadfile.c +++ b/sys/arch/alpha/stand/loadfile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: loadfile.c,v 1.4 1997/07/08 10:42:24 niklas Exp $ */ +/* $OpenBSD: loadfile.c,v 1.5 1997/07/08 18:13:14 niklas Exp $ */ /* $NetBSD: loadfile.c,v 1.3 1997/04/06 08:40:59 cgd Exp $ */ /* @@ -52,9 +52,7 @@ #include <machine/rpb.h> #include <machine/prom.h> -/* XXX this is a userland header!!! must go. */ -#define _AOUT_INCLUDE_ -#include <nlist.h> +#include <ddb/db_aout.h> #define _KERNEL #include "include/pte.h" @@ -190,6 +188,8 @@ coff_exec(fd, coff, entryp) symtab->n_un.n_strx = sym.es_strindex; symtab->n_value = sym.es_value; symtab->n_type = N_EXT; + if (sym.es_class == 1) /* scText */ + symtab->n_type != N_TEXT; symtab++; } ffp_save += symsize; |