Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern stsrt with an alignment of 1 (which means no alignm...



details:   https://anonhg.NetBSD.org/src/rev/72067eb0d4df
branches:  trunk
changeset: 321492:72067eb0d4df
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 18 13:18:39 2018 +0000

description:
stsrt with an alignment of 1 (which means no alignment). From alnsn

diffstat:

 sys/kern/exec_elf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 45cc5db7432a -r 72067eb0d4df sys/kern/exec_elf.c
--- a/sys/kern/exec_elf.c       Sun Mar 18 11:40:41 2018 +0000
+++ b/sys/kern/exec_elf.c       Sun Mar 18 13:18:39 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_elf.c,v 1.95 2018/03/18 02:16:21 christos Exp $   */
+/*     $NetBSD: exec_elf.c,v 1.96 2018/03/18 13:18:39 christos Exp $   */
 
 /*-
  * Copyright (c) 1994, 2000, 2005, 2015 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.95 2018/03/18 02:16:21 christos Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.96 2018/03/18 13:18:39 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_pax.h"
@@ -129,7 +129,7 @@
        Elf_Addr align, offset;
        int i;
 
-       for (align = i = 0; i < eh->e_phnum; i++)
+       for (align = 1, i = 0; i < eh->e_phnum; i++)
                if (ph[i].p_type == PT_LOAD && ph[i].p_align > align)
                        align = ph[i].p_align;
 



Home | Main Index | Thread Index | Old Index