]> Cypherpunks repositories - gostls13.git/commit
cmd/link: fix plugin on linux/arm64
authorCherry Zhang <cherryyz@google.com>
Fri, 27 Apr 2018 14:57:14 +0000 (10:57 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 27 Apr 2018 17:18:14 +0000 (17:18 +0000)
commitceda47d08adaa1fa851c2aa52d511ac9430c4a33
treeb781ae4394f38800414fd954d9238f68417ada25
parent2959128dc57618d7d5773411403ef0a255a9f72f
cmd/link: fix plugin on linux/arm64

The init function and runtime.addmoduledata were not added when
building plugin, which caused the runtime could not find the
module.

Testplugin is still not enabled on linux/arm64
(https://go.googlesource.com/go/+/master/src/cmd/dist/test.go#948)
because the gold linker on the builder is too old, which fails
with an internal error (see issue #17138). I tested locally and
it passes.

Fixes #24940.
Updates #17138.

Change-Id: I26aebca6c38a3443af0949471fa12b6d550e8c6c
Reviewed-on: https://go-review.googlesource.com/109917
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/arm64/asm.go