]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: check fingerprint for index consistency
authorCherry Zhang <cherryyz@google.com>
Thu, 23 Apr 2020 02:20:44 +0000 (22:20 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 24 Apr 2020 17:48:07 +0000 (17:48 +0000)
commit027055240f55b5664b760c13ddcc938e023e2dfe
tree642762d70a96cd44a1530a50b8596a35064c43d3
parente08f10b8b5fbb82ff1e2c263ad57e19d2de1e323
[dev.link] cmd/link: check fingerprint for index consistency

Previous CL introduced index fingerprint in the object files.
This CL implements the second part: checking fingerprint
consistency in the linker when packages are loaded.

Change-Id: I05dd4c4045a65adfd95e77b625d6c75a7a70e4f1
Reviewed-on: https://go-review.googlesource.com/c/go/+/229618
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/internal/goobj2/objfile.go
src/cmd/link/internal/ld/ld.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/link.go
src/cmd/link/internal/ld/main.go
src/cmd/link/internal/loader/loader.go
src/cmd/link/internal/sym/library.go
src/cmd/link/link_test.go
src/cmd/link/testdata/testIndexMismatch/a.go [new file with mode: 0644]
src/cmd/link/testdata/testIndexMismatch/b.go [new file with mode: 0644]
src/cmd/link/testdata/testIndexMismatch/main.go [new file with mode: 0644]