Module Name: src Committed By: christos Date: Sun Mar 18 13:18:39 UTC 2018
Modified Files: src/sys/kern: exec_elf.c Log Message: stsrt with an alignment of 1 (which means no alignment). From alnsn To generate a diff of this commit: cvs rdiff -u -r1.95 -r1.96 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.95 src/sys/kern/exec_elf.c:1.96 --- src/sys/kern/exec_elf.c:1.95 Sat Mar 17 22:16:21 2018 +++ src/sys/kern/exec_elf.c Sun Mar 18 09:18:39 2018 @@ -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_placedynexec(struct exec_package *ep 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;