]> Cypherpunks repositories - gostls13.git/commit
cmd: do not use notsha256
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 4 Sep 2024 11:30:35 +0000 (18:30 +0700)
committerGopher Robot <gobot@golang.org>
Wed, 4 Sep 2024 18:23:49 +0000 (18:23 +0000)
commit4fd73e5d4ca8c87efa127ee7a3290b1d0fdae313
tree454d18c4074ce87ae00638fb9e61f7058eb13cf8
parentad8b5f7fe91bdb0afc9dad72a0ba3ac46ce0167c
cmd: do not use notsha256

CL 402595 used notsha256 to prevent the compiler from depending on
cgo-based implementations of sha1 and sha256.

However, since CL 454836, cmd is built with CGO_ENABLED=0, which
will disable boringcrypto. Thus all usages of notsha256 is not necessary
anymore.

Updates #51940
Updates #64751

Change-Id: I503090f7a2efb5723e8a79523b143dc7cdb4edd0
Reviewed-on: https://go-review.googlesource.com/c/go/+/610596
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
15 files changed:
src/cmd/cgo/main.go
src/cmd/compile/internal/liveness/plive.go
src/cmd/compile/internal/noder/reader.go
src/cmd/compile/internal/ssa/print.go
src/cmd/compile/internal/staticdata/data.go
src/cmd/compile/internal/types/fmt.go
src/cmd/dist/buildtool.go
src/cmd/internal/codesign/codesign.go
src/cmd/internal/obj/objfile.go
src/cmd/internal/obj/sym.go
src/cmd/link/elf_test.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/macho_update_uuid.go
src/cmd/objdump/objdump_test.go