]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: move more of mustLinkExternal into internal/platform
authorBryan C. Mills <bcmills@google.com>
Wed, 1 Mar 2023 16:11:07 +0000 (16:11 +0000)
committerBryan Mills <bcmills@google.com>
Thu, 2 Mar 2023 16:34:21 +0000 (16:34 +0000)
commit3f8f929d60a90c4e4e2b07c8d1972166c1a783b1
tree99ab6774006a5bf4d2bf07dce3bb3a7c1a2cad87
parentb958d4a597a599e22c78d25d83d803ab2a1f2c52
cmd/link/internal/ld: move more of mustLinkExternal into internal/platform

internal/platform.MustLinkExternal is used in various places to
determine whether external linking is required. It should always
match what the linker actually requires, but today does not match
because the linker imposes additional constraints.

Updates #31544.

Change-Id: I0cc6ad587e95c607329dea5d60d29a5fb2a9e722
Reviewed-on: https://go-review.googlesource.com/c/go/+/472515
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
13 files changed:
src/cmd/dist/build.go
src/cmd/dist/build_test.go
src/cmd/go/internal/work/gc.go
src/cmd/link/internal/ld/config.go
src/cmd/link/internal/ld/dwarf_test.go
src/cmd/link/internal/ld/ld_test.go
src/cmd/link/link_test.go
src/cmd/nm/nm_cgo_test.go
src/internal/platform/supported.go
src/internal/testenv/testenv.go
src/os/exec/exec_test.go
src/runtime/crash_test.go
src/runtime/time_test.go