aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/internal/modload/build.go
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2019-09-18 14:07:55 -0400
committerThan McIntosh <thanm@google.com>2019-09-18 18:43:44 +0000
commit45873a242d9dec1ae31bacf6872d9c01414370ae (patch)
treecbd9a5feb2d950eb989fc04590a197e61ae21527 /src/cmd/go/internal/modload/build.go
parente70e0a6cbc4004f2449bdeb345dcf68278aaf8fe (diff)
downloadgo-45873a242d9dec1ae31bacf6872d9c01414370ae.tar.gz
go-45873a242d9dec1ae31bacf6872d9c01414370ae.zip
cmd/go: fix buglet in alternate gccgo debug_modinfo recipe
Fix bug in previous CL 171768 -- with Go 1.13 the proper entry point to call is runtime.setmodinfo, not runtime..z2fdebug.setmodinfo (this changed when we moved from 1.12). [ Unclear why trybots and runs of all.bash didn't catch this, but hand testing made it apparent. ] Updates #30344. Change-Id: I91f47bd0c279ad2d84875051be582818b13735b6 Reviewed-on: https://go-review.googlesource.com/c/go/+/196237 Run-TryBot: Than McIntosh <thanm@google.com> Reviewed-by: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/go/internal/modload/build.go')
-rw-r--r--src/cmd/go/internal/modload/build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go/internal/modload/build.go b/src/cmd/go/internal/modload/build.go
index f8dc0c84ff..f049a1ad94 100644
--- a/src/cmd/go/internal/modload/build.go
+++ b/src/cmd/go/internal/modload/build.go
@@ -274,7 +274,7 @@ var __debug_modinfo__ = %q
} else {
return []byte(fmt.Sprintf(`package main
import _ "unsafe"
-//go:linkname __set_debug_modinfo__ runtime..z2fdebug.setmodinfo
+//go:linkname __set_debug_modinfo__ runtime.setmodinfo
func __set_debug_modinfo__(string)
func init() { __set_debug_modinfo__(%q) }
`, string(infoStart)+info+string(infoEnd)))