diff options
author | Austin Clements <austin@google.com> | 2020-04-06 16:16:48 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2020-04-08 18:37:38 +0000 |
commit | d5e1b7ca68e2cc484d9a1517bdc0a9862936a1eb (patch) | |
tree | 4fdf0f2e0b21a99ee08bcf87ac833cd996b5162a /src/cmd/link/internal/ld/lib.go | |
parent | 8b4cbcc32098733832db0ba0cd8a8569315861c2 (diff) | |
download | go-d5e1b7ca68e2cc484d9a1517bdc0a9862936a1eb.tar.gz go-d5e1b7ca68e2cc484d9a1517bdc0a9862936a1eb.zip |
all: remove scattered remnants of darwin/386
This removes all conditions and conditional code (that I could find)
that depended on darwin/386.
Fixes #37610.
Change-Id: I630d9ea13613fb7c0bcdb981e8367facff250ba0
Reviewed-on: https://go-review.googlesource.com/c/go/+/227582
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/cmd/link/internal/ld/lib.go')
-rw-r--r-- | src/cmd/link/internal/ld/lib.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go index f7b8e04ddf..62cf2262bd 100644 --- a/src/cmd/link/internal/ld/lib.go +++ b/src/cmd/link/internal/ld/lib.go @@ -540,7 +540,7 @@ func (ctxt *Link) loadlib() { // We now have enough information to determine the link mode. determineLinkMode(ctxt) - if ctxt.LinkMode == LinkExternal && !iscgo && !(objabi.GOOS == "darwin" && ctxt.BuildMode != BuildModePlugin && (ctxt.Arch.Family == sys.AMD64 || ctxt.Arch.Family == sys.I386)) { + if ctxt.LinkMode == LinkExternal && !iscgo && !(objabi.GOOS == "darwin" && ctxt.BuildMode != BuildModePlugin && ctxt.Arch.Family == sys.AMD64) { // This indicates a user requested -linkmode=external. // The startup code uses an import of runtime/cgo to decide // whether to initialize the TLS. So give it one. This could |