]> Cypherpunks repositories - gostls13.git/commit
cmd/link: move all FUNCDATA refs into go.func.*
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 24 Sep 2021 20:50:22 +0000 (13:50 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 5 Oct 2021 15:47:07 +0000 (15:47 +0000)
commitcfd74f7727f6ad5a81d574c28cbee52cc13fdc52
tree685d4822219674969d09bc9076af3e060afb273b
parent7983830423ca0017dc5d990532e28df13862dc2d
cmd/link: move all FUNCDATA refs into go.func.*

This change moves all symbols referred to by FUNCDATA
into go.func.* and go.funcrel.*.

Surprisingly (because it inhibits some content-addressability),
it shrinks binaries by a little bit, about 0.1%.

This paves the way for a subsequent change to change
FUNCDATA relocations to offsets.

Change-Id: I70e487205073699f442192b0791cc92da5663057
Reviewed-on: https://go-review.googlesource.com/c/go/+/352189
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/internal/obj/objfile.go
src/cmd/link/internal/ld/symtab.go