1
0
mirror of https://github.com/golang/go synced 2024-11-18 08:44:43 -07:00
go/misc/cgo/testplugin
Keith Randall 9d4215311b runtime: identify special functions by flag instead of address
When there are plugins, there may not be a unique copy of runtime
functions like goexit, mcall, etc.  So identifying them by entry
address is problematic.  Instead, keep track of each special function
using a field in the symbol table.  That way, multiple copies of
the same runtime function will be treated identically.

Fixes #24351
Fixes #23133

Change-Id: Iea3232df8a6af68509769d9ca618f530cc0f84fd
Reviewed-on: https://go-review.googlesource.com/100739
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-03-15 17:31:57 +00:00
..
altpath/src cmd/link, runtime, plugin: versioning 2016-11-15 16:14:27 +00:00
src runtime: identify special functions by flag instead of address 2018-03-15 17:31:57 +00:00
unnamed1 cmd/go: add source file contents to plugin hash 2017-09-09 15:58:20 +00:00
unnamed2 cmd/go: add source file contents to plugin hash 2017-09-09 15:58:20 +00:00
test.bash runtime: identify special functions by flag instead of address 2018-03-15 17:31:57 +00:00