]> Cypherpunks repositories - gostls13.git/commit
cmd/link: support plugins with no exported symbols
authorDavid Crawshaw <crawshaw@golang.org>
Mon, 31 Oct 2016 03:53:09 +0000 (23:53 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Tue, 1 Nov 2016 20:56:30 +0000 (20:56 +0000)
commitd0e408334be22158fbf58a4d02789a48f5cb911e
treefb60bd9dda17d4410751bd85bd028f12a4cac76f
parente22c79660d96187b672a92622d171066a0d5c5c2
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>
misc/cgo/testplugin/src/host/host.go
misc/cgo/testplugin/src/plugin2/plugin2.go [new file with mode: 0644]
misc/cgo/testplugin/test.bash
src/cmd/link/internal/ld/deadcode.go
src/cmd/link/internal/ld/symtab.go