From 20dba8a13d2308f3570732f96b4a21b81a4146a8 Mon Sep 17 00:00:00 2001 From: vizee Date: Sun, 23 Jul 2017 02:48:21 +0800 Subject: [PATCH] Fix get TLS --- hack/hack_amd64.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/hack_amd64.s b/hack/hack_amd64.s index 5aa630c..61d7880 100644 --- a/hack/hack_amd64.s +++ b/hack/hack_amd64.s @@ -1,7 +1,7 @@ #include "textflag.h" TEXT ·TLS(SB), NOSPLIT, $8 - MOVQ TLS, AX + MOVQ (TLS), AX MOVQ AX, ret+0(FP) RET