dashboard: use race-enabled linker in racecompile builder

When the compiler's backend became concurrent, we introduced the
racecompile builder to run the compiler with the race detector
enabled to catch races. In the new linker work the linker will
become more concurrent as well. It is probably a good idea to run
the linker with the race detector as well.

Change-Id: Ib50f030cba0509730714b74462f5a8942fe2fd2d
Reviewed-on: https://go-review.googlesource.com/c/build/+/226369
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
diff --git a/dashboard/builders.go b/dashboard/builders.go
index fe8644f..c1a95c3 100644
--- a/dashboard/builders.go
+++ b/dashboard/builders.go
@@ -1620,8 +1620,8 @@
 		CompileOnly:         true,
 		SkipSnapshot:        true,
 		StopAfterMake:       true,
-		InstallRacePackages: []string{"cmd/compile"},
-		Notes:               "race-enabled cmd/compile",
+		InstallRacePackages: []string{"cmd/compile", "cmd/link"},
+		Notes:               "race-enabled cmd/compile and cmd/link",
 		env: []string{
 			"GO_DISABLE_OUTBOUND_NETWORK=1",
 		},
diff --git a/internal/buildgo/buildgo.go b/internal/buildgo/buildgo.go
index dce01fd..35c89df 100644
--- a/internal/buildgo/buildgo.go
+++ b/internal/buildgo/buildgo.go
@@ -150,9 +150,9 @@
 // runConcurrentGoBuildStdCmd is a step specific only to the
 // "linux-amd64-racecompile" builder to exercise the Go 1.9's new
 // concurrent compilation. It re-builds the standard library and tools
-// with -gcflags=-c=8 using a race-enabled cmd/compile (built by
-// caller, runMake, per builder config).
-// The idea is that this might find data races in cmd/compile.
+// with -gcflags=-c=8 using a race-enabled cmd/compile and cmd/link
+// (built by caller, RunMake, per builder config).
+// The idea is that this might find data races in cmd/compile and cmd/link.
 func (gb GoBuilder) runConcurrentGoBuildStdCmd(ctx context.Context, bc *buildlet.Client, w io.Writer) (remoteErr, err error) {
 	span := gb.CreateSpan("go_build_c128_std_cmd")
 	remoteErr, err = bc.Exec(ctx, path.Join(gb.Goroot, "bin/go"), buildlet.ExecOpts{