aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/panic.go
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo@golang.org>2024-10-18 18:54:45 +0200
committerGopher Robot <gobot@golang.org>2024-10-29 12:57:23 +0000
commitf505d6c581b633db5ca400a593ffd98d7e2c6cc9 (patch)
tree2fece73b98de32948edcb94abb37167439416564 /src/runtime/panic.go
parentff86b8b62f1fc00920bb49023c91be3b24ea71bc (diff)
downloadgo-f505d6c581b633db5ca400a593ffd98d7e2c6cc9.tar.xz
crypto/internal/fips: add self-test mechanism
Updates #69536 Change-Id: Ib68b0e7058221a89908fd47f255f0a983883bee8 Reviewed-on: https://go-review.googlesource.com/c/go/+/621075 Reviewed-by: Daniel McCarney <daniel@binaryparadox.net> Auto-Submit: Filippo Valsorda <filippo@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Roland Shoemaker <roland@golang.org> Reviewed-by: Carlos Amedee <carlos@golang.org>
Diffstat (limited to 'src/runtime/panic.go')
-rw-r--r--src/runtime/panic.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/runtime/panic.go b/src/runtime/panic.go
index a10d1dc959..f97f1c6a66 100644
--- a/src/runtime/panic.go
+++ b/src/runtime/panic.go
@@ -1038,6 +1038,11 @@ func rand_fatal(s string) {
fatal(s)
}
+//go:linkname fips_fatal crypto/internal/fips.fatal
+func fips_fatal(s string) {
+ fatal(s)
+}
+
// throw triggers a fatal error that dumps a stack trace and exits.
//
// throw should be used for runtime-internal fatal errors where Go itself,