Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Setting AT_BASE on static binaries breaks TLS becau...
details: https://anonhg.NetBSD.org/src/rev/3dba4de66fc8
branches: trunk
changeset: 356829:3dba4de66fc8
user: christos <christos%NetBSD.org@localhost>
date: Mon Oct 16 01:50:55 2017 +0000
description:
Setting AT_BASE on static binaries breaks TLS because they assume that
it is 0, will fix it differently.
diffstat:
sys/kern/exec_elf.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 97451c78511a -r 3dba4de66fc8 sys/kern/exec_elf.c
--- a/sys/kern/exec_elf.c Sun Oct 15 19:17:30 2017 +0000
+++ b/sys/kern/exec_elf.c Mon Oct 16 01:50:55 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exec_elf.c,v 1.91 2017/10/08 15:00:40 christos Exp $ */
+/* $NetBSD: exec_elf.c,v 1.92 2017/10/16 01:50:55 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.91 2017/10/08 15:00:40 christos Exp $");
+__KERNEL_RCSID(1, "$NetBSD: exec_elf.c,v 1.92 2017/10/16 01:50:55 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_pax.h"
@@ -815,9 +815,9 @@
interp = NULL;
} else {
epp->ep_entry = eh->e_entry;
- if (is_dyn || (epp->ep_flags & EXEC_FORCEAUX)) {
+ if (epp->ep_flags & EXEC_FORCEAUX) {
ap = kmem_zalloc(sizeof(*ap), KM_SLEEP);
- ap->arg_interp = epp->ep_entryoffset;
+ ap->arg_interp = (vaddr_t)NULL;
} else {
ap = NULL;
}
Home |
Main Index |
Thread Index |
Old Index