1
0
mirror of https://github.com/golang/go synced 2024-11-24 14:30:17 -07:00
go/misc
Michael Hudson-Doyle c949cff6a7 cmd/internal/ld: do not depend on local symbols to read a type's gcdata
We already read the address of a gcmask/gcprog out of the type data, but I
didn't know how many bytes to read. But it turns out that it's easy to
calculate, so change to do that. This means that we no longer depend on the
local symbols being present, allowing me to strip the shared libraries for
distribution and make them a lot smaller.

As a bonus, this makes LSym another 24 bytes smaller, down to 296 bytes now.

Change-Id: I379d359e28d63afae6753efd23efdf1fbb716992
Reviewed-on: https://go-review.googlesource.com/10377
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2015-05-27 14:11:16 +00:00
..
android misc/android: cleaner to remove stale GOROOT files 2015-05-25 20:52:10 +00:00
arm
cgo cmd/internal/ld: do not depend on local symbols to read a type's gcdata 2015-05-27 14:11:16 +00:00
chrome/gophertool
git
ios misc/ios: fix plist indentation and whitespace 2015-05-05 21:04:05 +00:00
linkcheck
makerelease
nacl cmd/link: move to cmd/newlink 2015-05-21 17:31:40 +00:00
swig
trace misc/trace: add license for the trace-viewer 2015-05-11 06:09:10 +00:00
benchcmp
editors