Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jun 2004 11:06:15 GMT
From:      Doug Rabson <dfr@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 55007 for review
Message-ID:  <200406151106.i5FB6FDc027453@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=55007

Change 55007 by dfr@dfr_home on 2004/06/15 11:05:59

	Add weak libc stubs for _rtld_allocate_tls and _rtld_free_tls.

Affected files ...

.. //depot/projects/kse/lib/libc/gen/tls.c#2 edit

Differences ...

==== //depot/projects/kse/lib/libc/gen/tls.c#2 (text+ko) ====

@@ -32,6 +32,8 @@
  * runtime from ld-elf.so.1.
  */
 
+#include <stddef.h>
+
 #ifdef __i386__
 
 extern void *___tls_get_addr(void *ti) __attribute__((__regparm__(1)));
@@ -45,8 +47,22 @@
 
 #endif
 
+#pragma weak __tls_get_addr
 void *
 __tls_get_addr()
 {
 	return (0);
 }
+
+#pragma weak _rtld_allocate_tls
+void *
+_rtld_allocate_tls(size_t tcbsize, size_t tcbalign)
+{
+	return (0);
+}
+
+#pragma weak _rtld_free_tls
+void
+_rtld_free_tls(void *tcb, size_t tcbsize, size_t tcbalign)
+{
+}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406151106.i5FB6FDc027453>