Module Name: src
Committed By: skrll
Date: Thu Mar 17 22:13:58 UTC 2011
Modified Files:
src/lib/libc/tls: tls.c
Log Message:
Appease the hppa linker.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/tls/tls.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/tls/tls.c
diff -u src/lib/libc/tls/tls.c:1.3 src/lib/libc/tls/tls.c:1.4
--- src/lib/libc/tls/tls.c:1.3 Sat Mar 12 07:52:37 2011
+++ src/lib/libc/tls/tls.c Thu Mar 17 22:13:58 2011
@@ -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 *