]> Cypherpunks repositories - gostls13.git/commit
cmd/link: correct type..importpath symbol handling
authorCherry Mui <cherryyz@google.com>
Thu, 30 Sep 2021 22:09:24 +0000 (18:09 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 1 Oct 2021 15:59:38 +0000 (15:59 +0000)
commite5ad363fff6e602bf72ce7bf5084297c0d1a2e51
tree7254c4ecc9cb68d1aa99dd190b0a8dd38f30f1af
parent8d494b08189cda1b66b9f851d4d7088c77ac7b6b
cmd/link: correct type..importpath symbol handling

The linker specially handles go.importpath symbols. But the
compiler doesn't actually generate such symbols. Instead, it
generates type..importpath symbols. It is already in the type
section as the name starts with "type.". Also set its alignment
to 1, as it is string data.

Change-Id: I771f5529a0ff41a5bb476b3a02c8cc75729792de
Reviewed-on: https://go-review.googlesource.com/c/go/+/353489
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/symtab.go