]> Cypherpunks repositories - gostls13.git/commit
cmd/link: move ElfType field in sym.Symbol to cold section
authorThan McIntosh <thanm@google.com>
Wed, 18 Jul 2018 14:19:35 +0000 (10:19 -0400)
committerThan McIntosh <thanm@google.com>
Thu, 30 Aug 2018 12:35:33 +0000 (12:35 +0000)
commitdd9e81f678c74550dba7faefe3545d0839f28b65
tree57ff20cd2372e9a63a992f6d77cbfa3fa1ab8497
parentf78cc1324a95b964f932b965a82f3c786cb1d932
cmd/link: move ElfType field in sym.Symbol to cold section

The sym.Symbol 'ElfType' field is used only for symbols corresponding
to things in imported shared libraries, hence is not needed in the
common case. Relocate it to sym.AuxSymbol so as to shrink the main
Symbol struct.

Updates #26186

Change-Id: I803efc561c31a0ca1d93eca434fda1c862a7b2c5
Reviewed-on: https://go-review.googlesource.com/125479
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/amd64/asm.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/symtab.go
src/cmd/link/internal/s390x/asm.go
src/cmd/link/internal/sym/sizeof_test.go
src/cmd/link/internal/sym/symbol.go