diff options
| author | Rahul Chaudhry <rahulchaudhry@chromium.org> | 2015-11-25 17:35:44 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2015-12-02 22:00:04 +0000 |
| commit | c091d4cd2590aaddf4bcfc9b1fa1bae22ae63bae (patch) | |
| tree | 7d72c46c4df1cf77468da625e34e7a56544d4be9 | |
| parent | 4480d6a9272cdf90ff958163fcdc3819216e8889 (diff) | |
| download | go-c091d4cd2590aaddf4bcfc9b1fa1bae22ae63bae.tar.xz | |
runtime: set TLSG_IS_VARIABLE for android/arm64.
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>
| -rw-r--r-- | src/runtime/tls_arm64.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/tls_arm64.h b/src/runtime/tls_arm64.h index 0fdc750d0f..c29fa7f7a9 100644 --- a/src/runtime/tls_arm64.h +++ b/src/runtime/tls_arm64.h @@ -4,6 +4,7 @@ #ifdef GOOS_android #define TLS_linux +#define TLSG_IS_VARIABLE #endif #ifdef GOOS_linux #define TLS_linux |
