Module Name: src Committed By: chs Date: Thu Oct 7 02:14:02 UTC 2010
Modified Files: src/sys/kern: exec_elf.c Log Message: when we use a fake data section, make sure that the start is page-aligned. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/sys/kern/exec_elf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/exec_elf.c diff -u src/sys/kern/exec_elf.c:1.26 src/sys/kern/exec_elf.c:1.27 --- src/sys/kern/exec_elf.c:1.26 Sat Sep 11 20:49:28 2010 +++ src/sys/kern/exec_elf.c Thu Oct 7 02:14:02 2010 @@ -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; }