From: Cherry Mui Date: Tue, 5 Dec 2023 17:30:19 +0000 (-0500) Subject: doc/go1.22: document enabling PIE by default on darwin/amd64 X-Git-Tag: go1.22rc1~106 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3d2645f337091e8cd3f6f0979716fa6cd124ffaa;p=gostls13.git doc/go1.22: document enabling PIE by default on darwin/amd64 Updates #61229. For #61422. Change-Id: I6cf8169c1e310e0de734250dbe04fb36e14728d9 Reviewed-on: https://go-review.googlesource.com/c/go/+/547455 Reviewed-by: Than McIntosh LUCI-TryBot-Result: Go LUCI --- diff --git a/doc/go1.22.html b/doc/go1.22.html index fdc9827bb2..1393be1dc9 100644 --- a/doc/go1.22.html +++ b/doc/go1.22.html @@ -140,11 +140,6 @@ Do not send CLs removing the interior tags from such phrases. TODO: https://go.dev/issue/62577: cmd/link, cmd/go: emit split DWARF on darwin

- -

- -

-

TODO: complete this section, or delete if not needed

@@ -651,6 +646,16 @@ Do not send CLs removing the interior tags from such phrases.

Ports

+

Darwin

+

+ On macOS on 64-bit x86 architecture (the darwin/amd64 port), + the Go toolchain now generates position-independent executables (PIE) by default. + Non-PIE binaries can be generated by specifying the -buildmode=exe + build flag. + On 64-bit ARM-based macOS (the darwin/arm64 port), + the Go toolchain already generates PIE by default. +

+

Arm

The GOARM environment variable now allows you to select whether to use software or hardware floating point.