]> Cypherpunks repositories - gostls13.git/commit
cmd/link: only include the version info and export data in ABI hash
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Wed, 12 Apr 2017 04:08:46 +0000 (16:08 +1200)
committerMichael Hudson-Doyle <michael.hudson@canonical.com>
Mon, 17 Apr 2017 22:02:01 +0000 (22:02 +0000)
commit533ed967c6e842b4f9b9b503d20b3af698a4e022
treefb6deab076cc8b0fd56524654d5deb9b24c1e9da
parent94b6011c78484357ef632f3cce3b382a0bc4c2cf
cmd/link: only include the version info and export data in ABI hash

Previously the "ABI hash" for a package (used to determine if a loaded shared
library has the ABI expected by its loader) was the hash of the entire
__.PKGDEF file. But that means it depends on the build ID generated by the go
tool for the package, which means that if a file is added (even a .c or .h
file!) to the package, the ABI changes, perhaps uncessarily.

Fixes #19920

Change-Id: If919481e1a03afb350c8a9c7a0666bb90ee90270
Reviewed-on: https://go-review.googlesource.com/40401
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/testshared/shared_test.go
src/cmd/link/internal/ld/lib.go