Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Mar 2012 03:42:54 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r233106 - head/lib/libc/arm/gen
Message-ID:  <201203180342.q2I3gsX7000103@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo
Date: Sun Mar 18 03:42:54 2012
New Revision: 233106
URL: http://svn.freebsd.org/changeset/base/233106

Log:
  Fix TLS for statically linked binaries
  
  Approved by:	cognet

Modified:
  head/lib/libc/arm/gen/_set_tp.c

Modified: head/lib/libc/arm/gen/_set_tp.c
==============================================================================
--- head/lib/libc/arm/gen/_set_tp.c	Sun Mar 18 02:19:30 2012	(r233105)
+++ head/lib/libc/arm/gen/_set_tp.c	Sun Mar 18 03:42:54 2012	(r233106)
@@ -29,7 +29,11 @@
 #include <string.h>
 #include <stdint.h>
 
+#include <machine/sysarch.h>
+
 void
 _set_tp(void *tp)
 {
+
+	*((struct tcb **)ARM_TP_ADDRESS) = tp;
 }



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