]> Cypherpunks repositories - gostls13.git/commit
cmd: use 20 bytes hash when possible
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 4 Sep 2024 11:39:52 +0000 (18:39 +0700)
committerGopher Robot <gobot@golang.org>
Wed, 4 Sep 2024 18:25:21 +0000 (18:25 +0000)
commitf033bc1819d6f4830216b969d8e88aa5cb3dc82a
tree787d1d554c5d0d6b9d391ce6e3942405806a293e
parent4fd73e5d4ca8c87efa127ee7a3290b1d0fdae313
cmd: use 20 bytes hash when possible

CL 402595 changes all usages of 20 bytes hash to 32 bytes hash by using
notsha256.

However, since CL 454836, notsha256 is not necessary anymore, so this CL
reverts those changes to 20 bytes hash using cmd/internal/hash package.

Updates #51940
Updates #64751

Change-Id: Icb08d5a0d8032a3c4d050ff7b2298d31c483b88b
Reviewed-on: https://go-review.googlesource.com/c/go/+/610597
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/liveness/plive.go
src/cmd/internal/obj/objfile.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/lib.go