From cc618d93e77dfbaac3b7e7e04a01eeac8fd4e63f Mon Sep 17 00:00:00 2001 From: chs Date: Sun, 14 Dec 2014 23:49:17 +0000 Subject: 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. --- libexec/ld.elf_so/tls.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'libexec') 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 -__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 #include @@ -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 -- cgit