summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorchs <chs@NetBSD.org>2014-12-14 23:49:17 +0000
committerchs <chs@NetBSD.org>2014-12-14 23:49:17 +0000
commitcc618d93e77dfbaac3b7e7e04a01eeac8fd4e63f (patch)
tree5a6257f8a070bb2d0a79f94050ba9b68a1a323d1 /libexec
parent5550f0634311889b2b774b801881bed8d0f4eb4c (diff)
fix powerpc TLS problems by removing the hacks for PPC EABI.
the kernel no longer treats R2 specially and its use as the TLS register is now handled entirely in userland.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.elf_so/tls.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/libexec/ld.elf_so/tls.c b/libexec/ld.elf_so/tls.c
index 9a5a7451512..261ffc42710 100644
--- a/libexec/ld.elf_so/tls.c
+++ b/libexec/ld.elf_so/tls.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tls.c,v 1.9 2013/10/21 19:14:15 joerg Exp $ */
+/* $NetBSD: tls.c,v 1.10 2014/12/14 23:49:17 chs Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: tls.c,v 1.9 2013/10/21 19:14:15 joerg Exp $");
+__RCSID("$NetBSD: tls.c,v 1.10 2014/12/14 23:49:17 chs Exp $");
#include <sys/param.h>
#include <sys/ucontext.h>
@@ -106,13 +106,6 @@ _rtld_tls_initial_allocation(void)
tcb = _rtld_tls_allocate_locked();
#ifdef __HAVE___LWP_SETTCB
__lwp_settcb(tcb);
-#ifdef __powerpc__
- /*
- * Save the tcb pointer so that libc can retrieve it. Older
- * crt0 will obliterate r2 so there is code in libc to restore it.
- */
- _lwp_setprivate(tcb);
-#endif
#else
_lwp_setprivate(tcb);
#endif