1
0
mirror of https://github.com/golang/go synced 2024-09-23 13:30:13 -06:00
go/misc/cgo
Cherry Mui eb75219438 [release-branch.go1.17] cmd/link: mark unexported methods for plugins
When plugin is used, we already mark all exported methods
reachable. However, when the plugin and the host program share
a common package, an unexported method could also be reachable
from both the plugin and the host via interfaces. We need to mark
them as well.

Fixes #51736.
Updates #51621.

Change-Id: I1a70d3f96b66b803f2d0ab14d00ed0df276ea500
Reviewed-on: https://go-review.googlesource.com/c/go/+/393365
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
(cherry picked from commit 91631bc7e0)
Reviewed-on: https://go-review.googlesource.com/c/go/+/397484
2022-04-04 18:02:38 +00:00
..
errors misc/cgo/errors: use expected column numbers 2021-06-05 04:40:03 +00:00
fortran misc/cgo/fortran: avoid writing to $PWD 2019-11-20 22:37:23 +00:00
gmp all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
life all: update references to symbols moved from io/ioutil to io 2021-04-05 17:51:15 +00:00
nocgo
stdio all: update references to symbols moved from io/ioutil to io 2021-04-05 17:51:15 +00:00
test syscall: some containers may fail syscall.TestSetuidEtc 2021-05-17 17:46:08 +00:00
testasan misc: log 'ok' from 'go run' tests on success 2019-11-25 16:43:27 +00:00
testcarchive [release-branch.go1.17] cmd/link: use SHT_INIT_ARRAY for .init_array section 2022-01-05 18:14:20 +00:00
testcshared misc/cgo: generate Windows import libraries for clang 2021-06-13 23:53:43 +00:00
testgodefs all: update references to symbols moved from io/ioutil to io 2021-04-05 17:51:15 +00:00
testplugin [release-branch.go1.17] cmd/link: mark unexported methods for plugins 2022-04-04 18:02:38 +00:00
testsanitizers runtime/cgo: when using msan explicitly unpoison cgoCallers 2021-08-09 14:48:39 +00:00
testshared [release-branch.go1.17] cmd/link: disable weak reference in itab if build with "-linkshared" 2021-10-28 16:34:40 +00:00
testsigfwd misc: log 'ok' from 'go run' tests on success 2019-11-25 16:43:27 +00:00
testso misc/cgo/testso, misc/cgo/testsovar: fix for Windows 2021-04-23 21:48:41 +00:00
testsovar misc/cgo/testso, misc/cgo/testsovar: fix for Windows 2021-04-23 21:48:41 +00:00
testtls all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00