]> Cypherpunks repositories - gostls13.git/commit
internal/platform: pass race mode to DefaultPIE
authorIan Lance Taylor <iant@golang.org>
Mon, 20 Mar 2023 21:08:59 +0000 (14:08 -0700)
committerGopher Robot <gobot@golang.org>
Mon, 20 Mar 2023 23:32:34 +0000 (23:32 +0000)
commitc7ea9969f8112721edc0a128277f8e5943e21a49
tree733af65934aa0e3f9c65fe5ad91daf9c888e43a9
parentb98c1b22bd1b91e46144537fd3146f5b9e3d8acb
internal/platform: pass race mode to DefaultPIE

On Windows we default to PIE, except in race mode.
Pass isRace to platform.DefaultPIE to centralize that decision.
This is in preparation for adding another call to DefaultPIE.

Change-Id: I91b75d307e7d4d260246a934f98734ddcbca372a
Reviewed-on: https://go-review.googlesource.com/c/go/+/477916
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
src/cmd/go/internal/work/init.go
src/cmd/link/internal/ld/dwarf_test.go
src/cmd/nm/nm_test.go
src/internal/platform/supported.go