Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/tls Appease the hppa linker.



details:   https://anonhg.NetBSD.org/src/rev/dc1c144692b4
branches:  trunk
changeset: 763359:dc1c144692b4
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Mar 17 22:13:58 2011 +0000

description:
Appease the hppa linker.

diffstat:

 lib/libc/tls/tls.c |  17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diffs (41 lines):

diff -r b35b8f2d84c7 -r dc1c144692b4 lib/libc/tls/tls.c
--- a/lib/libc/tls/tls.c        Thu Mar 17 22:07:52 2011 +0000
+++ b/lib/libc/tls/tls.c        Thu Mar 17 22:13:58 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tls.c,v 1.3 2011/03/12 07:52:37 matt Exp $     */
+/*     $NetBSD: tls.c,v 1.4 2011/03/17 22:13:58 skrll Exp $    */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: tls.c,v 1.3 2011/03/12 07:52:37 matt Exp $");
+__RCSID("$NetBSD: tls.c,v 1.4 2011/03/17 22:13:58 skrll Exp $");
 
 #include "namespace.h"
 
@@ -58,11 +58,20 @@
 static size_t tls_allocation;
 static void *initial_thread_tcb;
 
-__weak_alias(__tls_get_addr, 0)
+void * __libc_tls_get_addr(void);
+
+__weak_alias(__tls_get_addr, __libc_tls_get_addr)
 #ifdef __i386__
-__weak_alias(___tls_get_addr, 0)
+__weak_alias(___tls_get_addr, __libc_tls_get_addr)
 #endif
 
+void *
+__libc_tls_get_addr(void)
+{
+
+       abort();
+}
+
 __weak_alias(_rtld_tls_allocate, __libc_rtld_tls_allocate)
 
 struct tls_tcb *



Home | Main Index | Thread Index | Old Index