]> Cypherpunks repositories - gostls13.git/commit
cmd/link: preserve alignment for stackmap symbols
authorCherry Zhang <cherryyz@google.com>
Sat, 24 Oct 2020 17:05:31 +0000 (13:05 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 26 Oct 2020 14:34:39 +0000 (14:34 +0000)
commit404899f6b56800c1d8e0521fc9ce0c856e459d94
treedf83f52120fee0c34531cc5094af27cf70b17653
parentc80022204e8fc36ec487888d471de27a5ea47e17
cmd/link: preserve alignment for stackmap symbols

Stackmap symbols are content-addressable, so it may be dedup'd
with another symbol with same content. We want stackmap symbols
4-byte aligned. But if it dedup's with another symbol with larger
alignment, preserve that alignment.

Fixes #42071.

Change-Id: I1616dd2b0c175b2aac8f68782a5c7a62053c0b57
Reviewed-on: https://go-review.googlesource.com/c/go/+/264897
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Joel Sing <joel@sing.id.au>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/symtab.go