]> Cypherpunks repositories - gostls13.git/commit
cmd/link: always mark runtime.buildVersion and runtime.modinfo reachable
authorCherry Zhang <cherryyz@google.com>
Mon, 12 Oct 2020 19:37:21 +0000 (15:37 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 12 Oct 2020 20:51:51 +0000 (20:51 +0000)
commit3a34395363ffe1e95748fbabff2917c908f2670c
tree5eb0a6241b5e71f8a29f327d688b825cdab14e56
parent8994607f828e46272bae5e7959997dea8cb1a19a
cmd/link: always mark runtime.buildVersion and runtime.modinfo reachable

runtime.buildVersion and runtime.modinfo are referenced in the
.go.buildinfo section, therefore reachable. They should normally
be reachable from the runtime. Just make it explicit, in case.

Change-Id: I60ff3132e0bbb690f4a3cba8bb18735921fbe951
Reviewed-on: https://go-review.googlesource.com/c/go/+/261637
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/link/internal/ld/deadcode.go