Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern revert; but still fix the comment
details: https://anonhg.NetBSD.org/src/rev/1bfbd388afe8
branches: trunk
changeset: 339743:1bfbd388afe8
user: maxv <maxv%NetBSD.org@localhost>
date: Sat Aug 08 06:24:40 2015 +0000
description:
revert; but still fix the comment
diffstat:
sys/kern/exec_elf.c | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diffs (40 lines):
diff -r 749bb42c6fd7 -r 1bfbd388afe8 sys/kern/exec_elf.c
--- a/sys/kern/exec_elf.c Fri Aug 07 17:41:43 2015 +0000
+++ b/sys/kern/exec_elf.c Sat Aug 08 06:24:40 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_elf.c,v 1.75 2015/08/05 15:58:01 maxv Exp $ */
+/* $NetBSD: exec_elf.c,v 1.76 2015/08/08 06:24:40 maxv 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.75 2015/08/05 15:58:01 maxv Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.76 2015/08/08 06:24:40 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_pax.h"
@@ -646,7 +646,7 @@
return error;
if (eh->e_type == ET_DYN)
- /* PIE */
+ /* PIE, and some libs have an entry point */
is_dyn = true;
else if (eh->e_type != ET_EXEC)
return ENOEXEC;
@@ -692,12 +692,6 @@
}
}
- if (is_dyn && (interp == NULL)) {
- /* PIEs must have an interpreter */
- error = ENOEXEC;
- goto bad;
- }
-
/*
* On the same architecture, we may be emulating different systems.
* See which one will accept this executable.
Home |
Main Index |
Thread Index |
Old Index