Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libsa Fix IS_DATA and IS_TEXT. PF_X and PF_W are val...
details: https://anonhg.NetBSD.org/src/rev/f1b5a0174349
branches: trunk
changeset: 479990:f1b5a0174349
user: hannken <hannken%NetBSD.org@localhost>
date: Wed Dec 29 11:08:02 1999 +0000
description:
Fix IS_DATA and IS_TEXT. PF_X and PF_W are valid on p_pflags, not p_ptype.
diffstat:
sys/lib/libsa/loadfile.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 7adead8bf78c -r f1b5a0174349 sys/lib/libsa/loadfile.c
--- a/sys/lib/libsa/loadfile.c Wed Dec 29 08:19:07 1999 +0000
+++ b/sys/lib/libsa/loadfile.c Wed Dec 29 11:08:02 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: loadfile.c,v 1.6 1999/11/13 21:17:56 thorpej Exp $ */
+/* $NetBSD: loadfile.c,v 1.7 1999/12/29 11:08:02 hannken Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -293,8 +293,8 @@
(phdr.p_flags & (PF_W|PF_X)) == 0)
continue;
-#define IS_TEXT(p) (p.p_type & PF_X)
-#define IS_DATA(p) (p.p_type & PF_W)
+#define IS_TEXT(p) (p.p_flags & PF_X)
+#define IS_DATA(p) (p.p_flags & PF_W)
#define IS_BSS(p) (p.p_filesz < p.p_memsz)
/*
* XXX: Assume first address is lowest
Home |
Main Index |
Thread Index |
Old Index