Gopher Robot submitted the change![Open in Gerrit]()
Change information
Commit message:
cmd/compile: set alignment for all content-addressable symbols
There is nothing particularly special about content-addressable
symbols, it's just a place to start.
This reduces the size of the tailscaled binary by about 16K.
This happens mainly because before this CL the linker's symalign
function kicks in for all static composite literals and PCDATA symbols,
and gives them an alignment based on their size. If the size happens
to be a multiple of 32, it gets an alignment of 32.
That wastes space.
For #6853
For #36313
Change-Id: I2f049eee8f2463dd2b5e20d7c9a270ac32a31e50
Files:
- M src/cmd/compile/internal/liveness/arg.go
- M src/cmd/compile/internal/liveness/plive.go
- M src/cmd/compile/internal/reflectdata/reflect.go
- M src/cmd/compile/internal/ssagen/ssa.go
- M src/cmd/compile/internal/staticdata/data.go
- M src/cmd/compile/internal/staticinit/sched.go
- M src/cmd/internal/obj/arm64/asm7.go
- M src/cmd/internal/obj/objfile.go
- M src/cmd/internal/obj/pcln.go
- M src/cmd/internal/obj/sym.go
- M src/cmd/internal/obj/x86/seh.go
Change size: M
Delta: 11 files changed, 29 insertions(+), 65 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Cherry Mui, +2 by Keith Randall, +1 by Keith Randall
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I2f049eee8f2463dd2b5e20d7c9a270ac32a31e50
Gerrit-Change-Number: 727920
Gerrit-PatchSet: 13