aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/textflag.h
diff options
context:
space:
mode:
authorMichael Hudson-Doyle <michael.hudson@canonical.com>2015-08-11 12:29:00 +1200
committerDavid Crawshaw <crawshaw@golang.org>2015-09-03 14:06:07 +0000
commit9e6ba37b86d0390ac1c5eb80731ca131b6801b7a (patch)
tree7b2b404a2880f705ef10da08227c6dbb0415573f /src/runtime/textflag.h
parent499c827516b3877497b1533f44912f037b388a90 (diff)
downloadgo-9e6ba37b86d0390ac1c5eb80731ca131b6801b7a.tar.gz
go-9e6ba37b86d0390ac1c5eb80731ca131b6801b7a.zip
cmd/internal/obj: some platform independent bits of proper toolchain support for thread local storage
Also simplifies some silliness around making the .tbss section wrt internal vs external linking. The "make TLS make sense" project has quite a few more steps to go. Issue #11270 Change-Id: Ia4fa135cb22d916728ead95bdbc0ebc1ae06f05c Reviewed-on: https://go-review.googlesource.com/13990 Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: David Crawshaw <crawshaw@golang.org> Run-TryBot: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/textflag.h')
-rw-r--r--src/runtime/textflag.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/textflag.h b/src/runtime/textflag.h
index 2a76e76c29..f2690c938e 100644
--- a/src/runtime/textflag.h
+++ b/src/runtime/textflag.h
@@ -21,3 +21,6 @@
#define WRAPPER 32
// This function uses its incoming context register.
#define NEEDCTXT 64
+// Allocate a word of thread local storage and store the offset from the
+// thread local base to the thread local storage in this variable.
+#define TLSBSS 256