From b596a3f0c12232afe69b2aff13005762e67161ab Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Tue, 8 Jul 1997 18:13:15 +0000 Subject: set N_TEXT when appropriate. get rid of nlist.h inclusion. --- sys/arch/alpha/stand/loadfile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/arch/alpha') 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 #include -/* XXX this is a userland header!!! must go. */ -#define _AOUT_INCLUDE_ -#include +#include #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; -- cgit v1.2.3