]> Cypherpunks repositories - gostls13.git/commit
runtime: use fixed TLS offsets on darwin/amd64 and darwin/386
authorKeith Randall <khr@golang.org>
Tue, 10 Apr 2018 22:56:14 +0000 (22:56 +0000)
committerKeith Randall <khr@golang.org>
Wed, 11 Apr 2018 00:04:30 +0000 (00:04 +0000)
commitb3a854c733257c5249c3435ffcee194f8439676a
tree9a37a0d31c49b1bebb4874bee31577c121adb889
parent3d501df441b1d1d3e9fb2308140d8bb9b948ad65
runtime: use fixed TLS offsets on darwin/amd64 and darwin/386

Fixes #23617

Note that this CL does not affect darwin/arm and darwin/arm64,
still TBD what, if anything, needs to be done for those.

This is a fix of CL 105975 which was reverted in CL 106155.
Needed to use movl instead of movq for 386.

Change-Id: I0db7f8087173869e60cc22c6c3124fa0a0739b46
Reviewed-on: https://go-review.googlesource.com/106156
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/link/internal/ld/sym.go
src/runtime/cgo/gcc_darwin_386.c
src/runtime/cgo/gcc_darwin_amd64.c
src/runtime/sys_darwin_386.s
src/runtime/sys_darwin_amd64.s