aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/obj
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2024-11-06 11:30:25 -0500
committerRuss Cox <rsc@golang.org>2024-11-14 05:50:37 +0000
commit6c841e46408da2297989ab9d032cbe6318e8278e (patch)
treef1c4280c31539784b11b895602ad3a07c1df28d4 /src/cmd/internal/obj
parent2eac154b1c8b51d05fa5b110ae065d3610a61e06 (diff)
downloadgo-6c841e46408da2297989ab9d032cbe6318e8278e.tar.xz
all: enable FIPS verification code
Previous CLs committed changes to cmd/compile, cmd/link, and crypto/internal/fips/check behind boolean flags. Turn those flags on, to enable the CLs. This is a separate, trivial CL for easier rollback. For #69536. Change-Id: I68206bae0b7d7ad5c8758267d1a2e68853b63644 Reviewed-on: https://go-review.googlesource.com/c/go/+/626000 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/cmd/internal/obj')
-rw-r--r--src/cmd/internal/obj/fips.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cmd/internal/obj/fips.go b/src/cmd/internal/obj/fips.go
index 11028ce602..6505ce79ee 100644
--- a/src/cmd/internal/obj/fips.go
+++ b/src/cmd/internal/obj/fips.go
@@ -144,7 +144,7 @@ import (
"strings"
)
-const enableFIPS = false
+const enableFIPS = true
// IsFIPS reports whether we are compiling one of the crypto/internal/fips/... packages.
func (ctxt *Link) IsFIPS() bool {
@@ -201,6 +201,11 @@ func EnableFIPS() bool {
}
}
+ // AIX doesn't just work, and it's not worth fixing.
+ if buildcfg.GOOS == "aix" {
+ return false
+ }
+
return enableFIPS
}