1
0
mirror of https://github.com/golang/go synced 2024-11-18 10:14:45 -07:00
go/misc/cgo/testplugin/altpath/src
David Crawshaw 03da2690c9 cmd/link, runtime, plugin: versioning
In plugins and every program that opens a plugin, include a hash of
every imported package.

There are two versions of each hash: one local and one exported.
As the program starts and plugins are loaded, the first exported
symbol for each package becomes the canonical version.

Any subsequent plugin's local package hash symbol has to match the
canonical version.

Fixes #17832

Change-Id: I4e62c8e1729d322e14b1673bada40fa7a74ea8bc
Reviewed-on: https://go-review.googlesource.com/33161
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-11-15 16:14:27 +00:00
..
common cmd/link, runtime, plugin: versioning 2016-11-15 16:14:27 +00:00
plugin-mismatch cmd/link, runtime, plugin: versioning 2016-11-15 16:14:27 +00:00