]> Cypherpunks repositories - gostls13.git/commit
cmd/link: move Plt, Got fields in sym.Symbol to cold section
authorThan McIntosh <thanm@google.com>
Tue, 17 Jul 2018 19:36:30 +0000 (15:36 -0400)
committerThan McIntosh <thanm@google.com>
Thu, 30 Aug 2018 12:35:10 +0000 (12:35 +0000)
commitf78cc1324a95b964f932b965a82f3c786cb1d932
treeba4507cf96a031b4e05523a4c5eb3b5bb6123562
parent2975914a1a0b60132352cf0c34a39bea1197d789
cmd/link: move Plt, Got fields in sym.Symbol to cold section

The sym.Symbol 'Plt' and 'Got' field are used only with cgo and/or
external linking and are not needed for most symbols. Relocate them to
sym.AuxSymbol so as to shrink the main Symbol struct.

Updates #26186

Change-Id: I170d628a760be300a0c1f738f0998970e91ce3d6
Reviewed-on: https://go-review.googlesource.com/125478
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/amd64/asm.go
src/cmd/link/internal/arm/asm.go
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/loadpe/ldpe.go
src/cmd/link/internal/ppc64/asm.go
src/cmd/link/internal/s390x/asm.go
src/cmd/link/internal/sym/sizeof_test.go
src/cmd/link/internal/sym/symbol.go
src/cmd/link/internal/sym/symbols.go
src/cmd/link/internal/x86/asm.go