]> Cypherpunks repositories - gostls13.git/commit
internal/platform: add a function to report whether default builds are PIE
authorBryan C. Mills <bcmills@google.com>
Fri, 10 Mar 2023 20:37:17 +0000 (15:37 -0500)
committerGopher Robot <gobot@golang.org>
Wed, 15 Mar 2023 13:31:05 +0000 (13:31 +0000)
commitbbf795ebb114918a8e8dc7fd4d825cd5928d3f4d
tree814cd8f52220d444b6bf621b8b2c798ec643858d
parenta8cd10f2ab66d15ec43c6c6f688c3362f638237f
internal/platform: add a function to report whether default builds are PIE

This consolidates a condition that was previously repeated (in
different approximations) in several different places in the code.

For #58807.

Change-Id: Idd308759f6262b1f5c61f79022965612319edf94
Reviewed-on: https://go-review.googlesource.com/c/go/+/475457
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/go/internal/work/init.go
src/cmd/link/internal/ld/dwarf_test.go
src/cmd/nm/nm_test.go
src/cmd/pprof/pprof_test.go
src/internal/platform/supported.go