]> Cypherpunks repositories - gostls13.git/commit
cmd/link: move Localentry field in sym.Symbol to cold section
authorThan McIntosh <thanm@google.com>
Tue, 17 Jul 2018 18:38:34 +0000 (14:38 -0400)
committerThan McIntosh <thanm@google.com>
Thu, 30 Aug 2018 12:35:03 +0000 (12:35 +0000)
commit2975914a1a0b60132352cf0c34a39bea1197d789
treee184e3117359f6191360036c1200470220483ec6
parent09df9b06a1e5ff07dd349401795c85360743a3fb
cmd/link: move Localentry field in sym.Symbol to cold section

The sym.Symbol 'Localentry' field is used only with cgo and/or
external linking on MachoPPC. Relocate it to sym.AuxSymbol since it is
infrequently used, so as to shrink the main Symbol struct.

Updates #26186

Change-Id: I5872aa3f059270c2a091016d235a1a732695e411
Reviewed-on: https://go-review.googlesource.com/125477
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/loadelf/ldelf.go
src/cmd/link/internal/ppc64/asm.go
src/cmd/link/internal/sym/sizeof_test.go
src/cmd/link/internal/sym/symbol.go