1
0
mirror of https://github.com/golang/go synced 2024-11-26 11:38:01 -07:00
go/misc/cgo/testshared/testdata
Cuong Manh Le bcd82125f8 cmd/compile: re-compile instantiated generic methods in linkshared mode
For G[T] that was seen and compiled in imported package, it is not added
to typecheck.Target.Decls, prevent wasting compile time re-creating
DUPOKS symbols. However, the linker do not support a type symbol
referencing a method symbol across DSO boundary. That causes unreachable
sym error when building under -linkshared mode.

To fix it, always re-compile generic methods in linkshared mode.

Fixes #58966

Change-Id: I894b417cfe8234ae1fe809cc975889345df22cef
Reviewed-on: https://go-review.googlesource.com/c/go/+/477375
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-03-22 04:04:11 +00:00
..
dep2 Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
dep3 Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
depBase Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
division Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
exe Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
exe2 Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
exe3 Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
execgo Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
explicit Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
gcdata Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
global Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
globallib Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
iface Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
iface_a Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
iface_b Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
iface_i Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
implicit Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
implicitcmd Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
issue25065 Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
issue30768 Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
issue39777 Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
issue44031 Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
issue47837 Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00
issue58966 cmd/compile: re-compile instantiated generic methods in linkshared mode 2023-03-22 04:04:11 +00:00
trivial Revert "cmd/go: remove support for -buildmode=shared" 2021-10-29 17:32:24 +00:00