]> Cypherpunks repositories - gostls13.git/commit
cmd/compile,cmd/link: introduce generic interface call relocations
authorKeith Randall <khr@golang.org>
Fri, 22 Oct 2021 01:04:55 +0000 (18:04 -0700)
committerKeith Randall <khr@golang.org>
Mon, 25 Oct 2021 20:39:17 +0000 (20:39 +0000)
commitc26a32a5004afd4598f844ab49332c25d7613133
tree4ca1683cc1cf1a8c9fdd0bffca299b839486e2d2
parent252324e879e32f948d885f787decf8af06f82be9
cmd/compile,cmd/link: introduce generic interface call relocations

To capture the fact that a method was called on a generic interface,
so we can make sure the linker doesn't throw away any implementations
that might be the method called.

See the comment in reflect.go for details.

Fixes #49049

Change-Id: I0be74b6e727c1ecefedae072b149f59d539dc1e9
Reviewed-on: https://go-review.googlesource.com/c/go/+/357835
Trust: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Dan Scales <danscales@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/reflectdata/reflect.go
src/cmd/compile/internal/walk/expr.go
src/cmd/internal/objabi/reloctype.go
src/cmd/internal/objabi/reloctype_string.go
src/cmd/link/internal/ld/deadcode.go
test/typeparam/issue49049.go [new file with mode: 0644]