]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: set TLSG_IS_VARIABLE for android/arm64.
authorRahul Chaudhry <rahulchaudhry@chromium.org>
Thu, 26 Nov 2015 01:35:44 +0000 (17:35 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 2 Dec 2015 22:00:04 +0000 (22:00 +0000)
On android, runtime.tls_g is a normal variable.
TLS offset is computed in x_cgo_inittls.

Change-Id: I18bc9a736d5fb2a89d0f798956c754e3c10d10e2
Reviewed-on: https://go-review.googlesource.com/17246
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/runtime/tls_arm64.h

index 0fdc750d0f9ddca05f63b597afeac9fba7588072..c29fa7f7a9ab877212c4c5390170f3a8511bf2fb 100644 (file)
@@ -4,6 +4,7 @@
 
 #ifdef GOOS_android
 #define TLS_linux
+#define TLSG_IS_VARIABLE
 #endif
 #ifdef GOOS_linux
 #define TLS_linux