Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern fix debugging code.
details: https://anonhg.NetBSD.org/src/rev/bfa2495884dc
branches: trunk
changeset: 753196:bfa2495884dc
user: christos <christos%NetBSD.org@localhost>
date: Sat Mar 20 01:47:12 2010 +0000
description:
fix debugging code.
diffstat:
sys/kern/exec_elf.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r ab202199b533 -r bfa2495884dc sys/kern/exec_elf.c
--- a/sys/kern/exec_elf.c Sat Mar 20 01:45:30 2010 +0000
+++ b/sys/kern/exec_elf.c Sat Mar 20 01:47:12 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_elf.c,v 1.16 2010/03/20 01:45:30 christos Exp $ */
+/* $NetBSD: exec_elf.c,v 1.17 2010/03/20 01:47:12 christos Exp $ */
/*-
* Copyright (c) 1994, 2000, 2005 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.16 2010/03/20 01:45:30 christos Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.17 2010/03/20 01:47:12 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_pax.h"
@@ -149,8 +149,10 @@
uprintf("r=0x%x a=0x%x p=0x%x Delta=0x%lx\n", r, l2, PGSHIFT,
delta);
offset = ELF_TRUNC(delta, pax_align) + PAGE_SIZE;
+#ifdef PAX_ASLR_DEBUG
uprintf("pax offset=0x%zx entry=0x%llx\n",
- pax_offset, (unsigned long long)eh->e_entry);
+ offset, (unsigned long long)eh->e_entry);
+#endif /* PAX_ASLR_DEBUG */
} else
#endif /* PAX_ASLR */
offset = PAGE_SIZE;
Home |
Main Index |
Thread Index |
Old Index