]> Cypherpunks repositories - gostls13.git/commit
cmd/go: use alternate debug_modinfo recipe for gccgo
authorThan McIntosh <thanm@google.com>
Fri, 12 Apr 2019 13:47:43 +0000 (09:47 -0400)
committerThan McIntosh <thanm@google.com>
Wed, 18 Sep 2019 17:41:44 +0000 (17:41 +0000)
commitbaf7d95350c9eab317efe769cf113b3611a6ccd0
treea08ff5b6fe6926b828f65578d8c48b9fe3209997
parent7987238d9cfcef5f79ccd9458e59e22d8a8b3cf2
cmd/go: use alternate debug_modinfo recipe for gccgo

Use a different recipe for capturing debug modinfo if we're compiling
with the gccgo toolchain, to avoid applying a go:linkname directive to
a variable (not supported by gccgo).

Fixes #30344.

Change-Id: I9ce3d42c3bbb809fd68b140f56f9bbe3406c351b
Reviewed-on: https://go-review.googlesource.com/c/go/+/171768
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/modload/build.go
src/cmd/go/internal/work/exec.go