]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/objabi: rename R_USEGENERICIFACEMETHOD to R_USENAMEDMETHOD.
authorDominique Lefevre <domingolefevre@gmail.com>
Fri, 25 Aug 2023 13:06:36 +0000 (16:06 +0300)
committerCherry Mui <cherryyz@google.com>
Fri, 1 Sep 2023 15:08:50 +0000 (15:08 +0000)
commitb4c889b5618f328866579671a532c8e617cdb507
tree06fe8c0f6ed7aa256f2bc02808c7beb69ae3b213
parentbb74a53c215a9e3ebf2c2b22bd60b06ce45f0b3b
cmd/internal/objabi: rename R_USEGENERICIFACEMETHOD to R_USENAMEDMETHOD.

Now we have two cases when we want to keep methods with a specific name:
calls to generic interface methods and MethodByName("Foo"). Both use
the same relocation type, so let us give it a name that is not limited
to the implementation of generic interfaces.

Also, introduce staticdata.StrSymNoCommon(). It creates a symbol that
does not appear in the final binary and only communicates arguments
to the linker.

Change-Id: Icc9f49febfde1f31a4455b5acb903e8838d1c0af
Reviewed-on: https://go-review.googlesource.com/c/go/+/523016
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/compile/internal/reflectdata/reflect.go
src/cmd/compile/internal/staticdata/data.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