diff options
| author | David Crawshaw <crawshaw@golang.org> | 2016-10-30 23:53:09 -0400 |
|---|---|---|
| committer | David Crawshaw <crawshaw@golang.org> | 2016-11-01 20:56:30 +0000 |
| commit | d0e408334be22158fbf58a4d02789a48f5cb911e (patch) | |
| tree | fb60bd9dda17d4410751bd85bd028f12a4cac76f /misc/cgo/testplugin/test.bash | |
| parent | e22c79660d96187b672a92622d171066a0d5c5c2 (diff) | |
| download | go-d0e408334be22158fbf58a4d02789a48f5cb911e.tar.xz | |
cmd/link: support plugins with no exported symbols
A plugin with no exported symbols is still potentially very useful.
Its init functions are called on load, and it so it can have visible
side effects.
Fixes #17681
Change-Id: Icdca31f48e5ab13c99020a2ef724f3de47dcd74b
Reviewed-on: https://go-review.googlesource.com/32437
Run-TryBot: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'misc/cgo/testplugin/test.bash')
| -rwxr-xr-x | misc/cgo/testplugin/test.bash | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/cgo/testplugin/test.bash b/misc/cgo/testplugin/test.bash index 7a40934e0e..322d43901d 100755 --- a/misc/cgo/testplugin/test.bash +++ b/misc/cgo/testplugin/test.bash @@ -23,6 +23,7 @@ rm -rf pkg sub mkdir sub GOPATH=$(pwd) go build -buildmode=plugin plugin1 +GOPATH=$(pwd) go build -buildmode=plugin plugin2 GOPATH=$(pwd) go build -buildmode=plugin -o=sub/plugin1.so sub/plugin1 GOPATH=$(pwd) go build host |
