]> Cypherpunks repositories - gostls13.git/commit
cmd/link: use internal linking for -race mode on darwin/arm64
authorCherry Zhang <cherryyz@google.com>
Sun, 1 Nov 2020 20:28:21 +0000 (15:28 -0500)
committerCherry Zhang <cherryyz@google.com>
Mon, 2 Nov 2020 23:58:08 +0000 (23:58 +0000)
commit3a76627df4f6bd38a3cfa21aeddcb871f6df1881
treedadc7db16fb429ecac6521123b69c61a8316b9b2
parent39a5ee52b9b41b1e4f4cf821c78ef5b7be68d181
cmd/link: use internal linking for -race mode on darwin/arm64

The code I wrote in ldmacho.go in CL 266373 was plainly wrong. It
didn't carry rAdd over correctly. Fixed. Also added sign extension
(as ld64 does).

Internal linking with -race mode now works. Enable it.

Updates #38485.

Change-Id: I78aa949687bf6a0987913059059160b018c7560e
Reviewed-on: https://go-review.googlesource.com/c/go/+/267097
Trust: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/config.go
src/cmd/link/internal/loadmacho/ldmacho.go