aboutsummaryrefslogtreecommitdiff
path: root/src/errors
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2019-04-09 12:10:27 -0400
committerCherry Zhang <cherryyz@google.com>2019-04-09 18:57:21 +0000
commit68c664141cc3c0cecfe9171627d49e942c929a93 (patch)
treea3ba33d7b85153d53b5576657598c177a1fa4bd7 /src/errors
parent016625c26591d375a4bfcf83532ff8407860612a (diff)
downloadgo-68c664141cc3c0cecfe9171627d49e942c929a93.tar.xz
cmd/internal/obj/x86: allow non-zero offset in TLS reference
An instruction that references TLS, e.g. MOVQ 0(TLS), AX on some platforms (e.g. Android), or in shared mode, may be translated to (assuming TLS offset already loaded to CX) MOVQ 0(CX)(TLS*1), AX which in turns translates to movq %fs:(%rcx), %rax We have rejected non-zero offset for TLS reference, like 16(TLS). Actually, the instruction can take offset, i.e. it is a valid instruction for, e.g., movq %fs:16(%rcx),%rcx So, allow offset in TLS reference. Change-Id: Iaf1996bad7fe874e0c298ea441af5acb136a4028 Reviewed-on: https://go-review.googlesource.com/c/go/+/171151 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/errors')
0 files changed, 0 insertions, 0 deletions