mirror of
https://github.com/golang/go
synced 2024-11-02 13:42:29 +00:00
cmd/compile: stop aligning string data
Makes godoc 10KB smaller. For #6853. Change-Id: Id54bd8c82cb2a1ba11d2d724e3107f73024b19d9 Reviewed-on: https://go-review.googlesource.com/19696 Run-TryBot: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
cd41db34bc
commit
735e5a483c
1 changed files with 1 additions and 2 deletions
|
@ -233,8 +233,7 @@ func stringsym(s string) (hdr, data *Sym) {
|
|||
off = dsname(symdata, off, s[n:n+m])
|
||||
}
|
||||
|
||||
off = duint8(symdata, off, 0) // terminating NUL for runtime
|
||||
off = (off + Widthptr - 1) &^ (Widthptr - 1) // round to pointer alignment
|
||||
off = duint8(symdata, off, 0) // terminating NUL for runtime
|
||||
ggloblsym(symdata, int32(off), obj.DUPOK|obj.RODATA|obj.LOCAL)
|
||||
|
||||
return symhdr, symdata
|
||||
|
|
Loading…
Reference in a new issue