]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/obj: reduce alignment for gcbits
authorCherry Mui <cherryyz@google.com>
Fri, 1 Oct 2021 21:02:50 +0000 (17:02 -0400)
committerCherry Mui <cherryyz@google.com>
Mon, 4 Oct 2021 23:29:20 +0000 (23:29 +0000)
runtime.gcbits symbols are pointer masks, which are just bytes.

Change-Id: I6e86359451c7da69da435e1928e55712dd904047
Reviewed-on: https://go-review.googlesource.com/c/go/+/353571
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/internal/obj/objfile.go

index b6b922e02ba0375d8506bc6701d413675ca4f699..0f3356f85e72bf780d2c8f1191f0a9d5f7a6eab9 100644 (file)
@@ -344,6 +344,7 @@ func (w *writer) Sym(s *LSym) {
                case strings.HasPrefix(s.Name, "go.string."),
                        strings.HasPrefix(name, "type..namedata."),
                        strings.HasPrefix(name, "type..importpath."),
+                       strings.HasPrefix(name, "runtime.gcbits."),
                        strings.HasSuffix(name, ".opendefer"),
                        strings.HasSuffix(name, ".arginfo0"),
                        strings.HasSuffix(name, ".arginfo1"):