]> Cypherpunks repositories - gostls13.git/commit
cmd/go: default to PIE linking on darwin/amd64
authorCherry Mui <cherryyz@google.com>
Fri, 16 Sep 2022 22:10:56 +0000 (18:10 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 4 Aug 2023 15:41:19 +0000 (15:41 +0000)
commitf7b4f02ba067096650b74426ed1459cbf63a93da
treefe2513a129a6f01cab73761c7fe246e8fcb52f06
parent74caf475e3b31a463637bfe3cbdb317674f0930f
cmd/go: default to PIE linking on darwin/amd64

The recent version of darwin linker ld64 emits an warning about
deprecation of the -no_pie flag. Further, the new darwin linker
ld-prime ignores -no_pie flag and generates a PIE binary anyway.
Switch to building PIE binaries by default.

Updates #54482.
Updates #61229.

Change-Id: I81294dcd07a368a20e1349d56556ee2fdcb8df44
Reviewed-on: https://go-review.googlesource.com/c/go/+/461697
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/cgo/internal/test/issue4029.c
src/cmd/cgo/internal/test/issue4029.go
src/cmd/cgo/internal/test/issue4029w.go
src/internal/platform/supported.go