]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: use fingerprint as package hash
authorCherry Zhang <cherryyz@google.com>
Mon, 1 Jun 2020 23:36:16 +0000 (19:36 -0400)
committerCherry Zhang <cherryyz@google.com>
Thu, 4 Jun 2020 16:06:33 +0000 (16:06 +0000)
commit7bc3b6e5e4b6061ebfa267fcb27731ac94ae7f4d
tree78cc42a79306d2324d5010702f0adcb13b997c8e
parent7795523910227cb6df3c91ebdb317037fc9ceb86
[dev.link] cmd/link: use fingerprint as package hash

Now the compiler-generated fingerprint is a hash of the export
data. We don't need to hash it ourselves in the linker. And the
linker doesn't need to read export data at all.

Fixes #33820.

Change-Id: I54bf3ebfd0f0c72aa43a352d7b2e0575dd62970d
Reviewed-on: https://go-review.googlesource.com/c/go/+/236119
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/symtab.go
src/cmd/link/internal/sym/library.go