Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern when we use a fake data section, make sure that the...
details: https://anonhg.NetBSD.org/src/rev/2a05986764f5
branches: trunk
changeset: 757955:2a05986764f5
user: chs <chs%NetBSD.org@localhost>
date: Thu Oct 07 02:14:02 2010 +0000
description:
when we use a fake data section, make sure that the start is page-aligned.
diffstat:
sys/kern/exec_elf.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c134b793f880 -r 2a05986764f5 sys/kern/exec_elf.c
--- a/sys/kern/exec_elf.c Thu Oct 07 01:28:50 2010 +0000
+++ b/sys/kern/exec_elf.c Thu Oct 07 02:14:02 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_elf.c,v 1.26 2010/09/11 20:49:28 chs Exp $ */
+/* $NetBSD: exec_elf.c,v 1.27 2010/10/07 02:14:02 chs 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.26 2010/09/11 20:49:28 chs Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.27 2010/10/07 02:14:02 chs Exp $");
#ifdef _KERNEL_OPT
#include "opt_pax.h"
@@ -781,7 +781,7 @@
}
if (epp->ep_daddr == ELFDEFNNAME(NO_ADDR)) {
- epp->ep_daddr = end_text;
+ epp->ep_daddr = round_page(end_text);
epp->ep_dsize = 0;
}
Home |
Main Index |
Thread Index |
Old Index