]> Cypherpunks repositories - gostls13.git/commit
cmd/go: use DefaultPIE to see if external linking is forced
authorIan Lance Taylor <iant@golang.org>
Mon, 20 Mar 2023 21:20:22 +0000 (14:20 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 20 Mar 2023 23:33:31 +0000 (23:33 +0000)
commit9279a9af8b878a1d516539ac882833fe3e7cc202
treedb273b8f27776b1d530df7ffad347f180a087d14
parentc7ea9969f8112721edc0a128277f8e5943e21a49
cmd/go: use DefaultPIE to see if external linking is forced

Before this CL, the code checked whether external linking was
required for -buildmode=pie. This CL changes it to also consider
whether external linking is required if PIE is the default build mode.

Change-Id: I5ac62fc027622576a152a8b7b5d97bc1d112adb4
Reviewed-on: https://go-review.googlesource.com/c/go/+/477917
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/internal/load/pkg.go