]> Cypherpunks repositories - gostls13.git/commit
cmd/go: enforce -Wl,--push-state logic only when it is a prefix
authorRoland Shoemaker <roland@golang.org>
Fri, 15 Nov 2024 15:40:49 +0000 (07:40 -0800)
committerRoland Shoemaker <roland@golang.org>
Wed, 20 Nov 2024 18:26:43 +0000 (18:26 +0000)
commitc901d93fcd5b1a2439232de4469400fd7a327128
tree3238b202e09d1aed2620dcd3412fe1953d966f64
parent30b09bccfd2446de566f9dfd0592cb4406e639b2
cmd/go: enforce -Wl,--push-state logic only when it is a prefix

Make sure we only run the --push-state logic when -Wl,--push-state is a
prefix of the argument, not just present in the argument string.

Thanks to Juho Forsén of Mattermost for reporting this issue.

Change-Id: I799f7854ff680674fd84cf2136fadf70817fc7e2
Reviewed-on: https://go-review.googlesource.com/c/go/+/628415
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/go/internal/work/security.go
src/cmd/go/internal/work/security_test.go