]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: avoid static init of strings in FIPS mode
authorRuss Cox <rsc@golang.org>
Mon, 18 Nov 2024 00:53:18 +0000 (19:53 -0500)
committerGopher Robot <gobot@golang.org>
Mon, 18 Nov 2024 17:29:51 +0000 (17:29 +0000)
commit5ec1457941d1754a583a745259b9c308749c0bd1
tree12813c8b7566f7964209392bd112d2a665cfebf7
parent61790207f52fb594aeb5cd71c1ef62051bc177f9
cmd/compile: avoid static init of strings in FIPS mode

Strings have relocations, and data relocations are bad.
Other literals are fine.

Fixes build failure in pending CL 628776.

Change-Id: I7a38bbff9776a365c5823d54c4a00e068dda5d9a
Reviewed-on: https://go-review.googlesource.com/c/go/+/628915
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/staticinit/sched.go
src/cmd/compile/internal/walk/complit.go