]> Cypherpunks repositories - gostls13.git/commit
cmd/go: don't always link in cgo for PIE
authorCherry Zhang <cherryyz@google.com>
Sun, 11 Oct 2020 20:27:25 +0000 (16:27 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 12 Oct 2020 22:37:15 +0000 (22:37 +0000)
commit6c0135d3772e710328c751fbc704927931f129ca
tree4d3a5ca816d1a853ef86b10894ad3943a1e48d38
parent027367ac50be74ea6237ef88188365125acec8d7
cmd/go: don't always link in cgo for PIE

Internal linking for PIE is now supported and enabled by default
on some platforms, for which cgo is not needed. Don't always
bring in cgo.

Change-Id: I043ed436f0e6a3acbcc53ec543f06e193d614b36
Reviewed-on: https://go-review.googlesource.com/c/go/+/261498
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/internal/load/pkg.go
src/cmd/internal/sys/supported.go