]> Cypherpunks repositories - gostls13.git/commit
cmd/link: set alignment for string symbols in symtab pass
authorCherry Mui <cherryyz@google.com>
Thu, 30 Sep 2021 21:42:15 +0000 (17:42 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 1 Oct 2021 14:30:33 +0000 (14:30 +0000)
commit8d494b08189cda1b66b9f851d4d7088c77ac7b6b
tree29086fb73789bd91250bb3c2cea98b021c9822f4
parent96d3ba868aae7aa043147f18e0ca299ada4e34b7
cmd/link: set alignment for string symbols in symtab pass

Set alignment for string symbols in symtab pass, so we don't need
to look at symbol name in symalign in dodata pass. (Ideally we
should not use symbol name like this in symtab pass either, but
we already use the names there anyway.)

Change-Id: I9fd61e0dd0824c50e3d0d7c07f75b967c8654796
Reviewed-on: https://go-review.googlesource.com/c/go/+/353470
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/symtab.go