summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2005-02-26 10:39:49 +0000
committerdavidxu <davidxu@FreeBSD.org>2005-02-26 10:39:49 +0000
commit92042d9431992d6c2a3ce91fba2c8484b923374e (patch)
treeaaae7b04cdd4cf4536572e74e4e64906ec085c5f /lib/libc
parent9aba394fc7e749ff5cb87deb0798c66bfc5a6f86 (diff)
downloadFreeBSD-src-92042d9431992d6c2a3ce91fba2c8484b923374e.zip
FreeBSD-src-92042d9431992d6c2a3ce91fba2c8484b923374e.tar.gz
Mark _rtld_allocate_tls and _rtld_free_tls as weak symbols for Variant I
tls. Reviewed by: dfr
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/tls.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/gen/tls.c b/lib/libc/gen/tls.c
index 703bfef..1fdfc94 100644
--- a/lib/libc/gen/tls.c
+++ b/lib/libc/gen/tls.c
@@ -86,6 +86,10 @@ __tls_get_addr()
#ifdef TLS_VARIANT_I
+#pragma weak _rtld_free_tls
+/*
+ * Free Static TLS using the Variant II method.
+ */
void
_rtld_free_tls(void *tls, size_t tcbsize, size_t tcbalign)
{
@@ -98,6 +102,7 @@ _rtld_free_tls(void *tls, size_t tcbsize, size_t tcbalign)
#endif
}
+#pragma weak _rtld_allocate_tls
/*
* Allocate Static TLS using the Variant I method.
*/
OpenPOWER on IntegriCloud