Skip to content

Commit

Permalink
doc/go1.22: document enabling PIE by default on darwin/amd64
Browse files Browse the repository at this point in the history
Updates golang#61229.
For golang#61422.

Change-Id: I6cf8169c1e310e0de734250dbe04fb36e14728d9
Reviewed-on: https://go-review.googlesource.com/c/go/+/547455
Reviewed-by: Than McIntosh <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
  • Loading branch information
cherrymui authored and ezz-no committed Feb 17, 2024
1 parent b4b09e5 commit 5b65733
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions doc/go1.22.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,6 @@ <h2 id="linker">Linker</h2>
TODO: <a href="https://go.dev/issue/62577">https://go.dev/issue/62577</a>: cmd/link, cmd/go: emit split DWARF on darwin
</p>

<!-- CL 461697 -->
<p>
<!-- cmd/go: default to PIE linking on darwin/amd64 -->
</p>

<p>
TODO: complete this section, or delete if not needed
</p>
Expand Down Expand Up @@ -651,6 +646,16 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>

<h2 id="ports">Ports</h2>

<h3 id="darwin">Darwin</h3>
<p><!-- CL 461697 -->
On macOS on 64-bit x86 architecture (the <code>darwin/amd64</code> port),
the Go toolchain now generates position-independent executables (PIE) by default.
Non-PIE binaries can be generated by specifying the <code>-buildmode=exe</code>
build flag.
On 64-bit ARM-based macOS (the <code>darwin/arm64</code> port),
the Go toolchain already generates PIE by default.
</p>

<h3 id="arm">Arm</h3>
<p><!-- CL 514907 -->
The <code>GOARM</code> environment variable now allows you to select whether to use software or hardware floating point.
Expand Down

0 comments on commit 5b65733

Please sign in to comment.