1
0
mirror of https://github.com/golang/go synced 2024-11-24 18:50:05 -07:00
go/misc/cgo/testshared
Michael Hudson-Doyle 533ed967c6 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>
2017-04-17 22:02:01 +00:00
..
src runtime: use hardware divider to improve performance 2017-04-11 12:25:55 +00:00
shared_test.go cmd/link: only include the version info and export data in ABI hash 2017-04-17 22:02:01 +00:00