Skip to content

Commit 45873a2

Browse files
committed
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 <[email protected]> Reviewed-by: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent e70e0a6 commit 45873a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/go/internal/modload/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ var __debug_modinfo__ = %q
274274
} else {
275275
return []byte(fmt.Sprintf(`package main
276276
import _ "unsafe"
277-
//go:linkname __set_debug_modinfo__ runtime..z2fdebug.setmodinfo
277+
//go:linkname __set_debug_modinfo__ runtime.setmodinfo
278278
func __set_debug_modinfo__(string)
279279
func init() { __set_debug_modinfo__(%q) }
280280
`, string(infoStart)+info+string(infoEnd)))

0 commit comments

Comments
 (0)