]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: handle static assembly symbols correctly in FIPS check
authorRuss Cox <rsc@golang.org>
Tue, 26 Nov 2024 16:40:28 +0000 (11:40 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 27 Nov 2024 18:19:09 +0000 (18:19 +0000)
commit91d7ab2cefcc653f8b438fbfaa48d504dbfa4f00
tree6895a9536802460bdfe835a5eb5b0ee6ce42b5c6
parent4f78aa9e8bc909395bb891b12586ea0a7c9dfff1
cmd/internal/obj: handle static assembly symbols correctly in FIPS check

Static symbols don't have the package prefix, so we need to identify
them specially.

Change-Id: Iaa0456de802478f6a257164e9703f18f8dc7eb50
Reviewed-on: https://go-review.googlesource.com/c/go/+/631975
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/internal/obj/fips140.go
src/crypto/internal/fips140/check/checktest/asm_386.s [new file with mode: 0644]
src/crypto/internal/fips140/check/checktest/asm_amd64.s [new file with mode: 0644]
src/crypto/internal/fips140/check/checktest/asm_arm.s [new file with mode: 0644]
src/crypto/internal/fips140/check/checktest/asm_arm64.s [new file with mode: 0644]
src/crypto/internal/fips140/check/checktest/asm_none.go [new file with mode: 0644]
src/crypto/internal/fips140/check/checktest/asm_stub.go [new file with mode: 0644]
src/crypto/internal/fips140test/check_test.go