]> Cypherpunks repositories - gostls13.git/commit
all: add push linknames to allow legacy pull linknames
authorCherry Mui <cherryyz@google.com>
Thu, 16 May 2024 21:19:15 +0000 (17:19 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 17 May 2024 16:48:00 +0000 (16:48 +0000)
commit41aab30bd260297ad8ddad47e98fdf8390a9a67e
tree35f0a55a0bf582f2df6faa2be02e185db43dabcc
parentf73dd8173a2d459113254dbd71d47856b5be0441
all: add push linknames to allow legacy pull linknames

CL 585358 adds restrictions to disallow pull-only linknames
(currently off by default). Currently, there are quite some pull-
only linknames in user code in the wild. In order not to break
those, we add push linknames to allow them to be pulled. This CL
includes linknames found in a large code corpus (thanks Matthew
Dempsky and Michael Pratt for the analysis!), that are not
currently linknamed.

Updates #67401.

Change-Id: I32f5fc0c7a6abbd7a11359a025cfa2bf458fe767
Reviewed-on: https://go-review.googlesource.com/c/go/+/586137
Reviewed-by: Russ Cox <rsc@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
22 files changed:
src/cmd/link/link_test.go
src/cmd/link/testdata/linkname/badlinkname.go [new file with mode: 0644]
src/crypto/tls/badlinkname.go [new file with mode: 0644]
src/crypto/x509/badlinkname.go [new file with mode: 0644]
src/database/sql/badlinkname.go [new file with mode: 0644]
src/go/build/badlinkname.go [new file with mode: 0644]
src/go/types/badlinkname.go [new file with mode: 0644]
src/internal/cpu/badlinkname_linux_arm64.go [new file with mode: 0644]
src/internal/poll/badlinkname.go [new file with mode: 0644]
src/internal/testlog/badlinkname.go [new file with mode: 0644]
src/math/big/badlinkname.go [new file with mode: 0644]
src/mime/multipart/badlinkname.go [new file with mode: 0644]
src/net/badlinkname.go [new file with mode: 0644]
src/net/http/badlinkname.go [new file with mode: 0644]
src/net/url/badlinkname.go [new file with mode: 0644]
src/reflect/badlinkname.go [new file with mode: 0644]
src/runtime/badlinkname.go [new file with mode: 0644]
src/runtime/badlinkname_linux_amd64.go [new file with mode: 0644]
src/runtime/time_nofake.go
src/sync/badlinkname.go [new file with mode: 0644]
src/syscall/badlinkname_unix.go [new file with mode: 0644]
src/time/badlinkname.go [new file with mode: 0644]