From 3d68feb2a657d1a59ae8a724d8d65373b01c4600 Mon Sep 17 00:00:00 2001 From: gonzo Date: Sun, 18 Mar 2012 03:42:54 +0000 Subject: [PATCH] Fix TLS for statically linked binaries Approved by: cognet --- lib/libc/arm/gen/_set_tp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libc/arm/gen/_set_tp.c b/lib/libc/arm/gen/_set_tp.c index 4c26dffa0114..9307d95798f4 100644 --- a/lib/libc/arm/gen/_set_tp.c +++ b/lib/libc/arm/gen/_set_tp.c @@ -29,7 +29,11 @@ #include #include +#include + void _set_tp(void *tp) { + + *((struct tcb **)ARM_TP_ADDRESS) = tp; }