]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: fix aux symbol handling in Funcdata
authorCherry Zhang <cherryyz@google.com>
Fri, 10 Apr 2020 18:12:44 +0000 (14:12 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 10 Apr 2020 19:04:34 +0000 (19:04 +0000)
commit84fb045763f5a8917b98b82ae08f919a922e8177
tree31db58c7ecd5ffcb1f6e75855614335ddfca27ea
parent53a2a6a7fc5dc0ac5eb9db80af59485380fb0052
[dev.link] cmd/link: fix aux symbol handling in Funcdata

If a Go symbol is cloned to external, we should preserve its Aux
symbols for FuncInfo, etc.. We already do this in
loader.FuncInfo, but not in FuncInfo.Funcdata. Do it in the
latter as well. In fact, since FuncInfo and Funcdata should use
the same set of auxs, just record the auxs and reuse.

Should fix PPC64 build.

Change-Id: Iab9020eaca15d98fe3bb41f50f0d5bdb4999e8c8
Reviewed-on: https://go-review.googlesource.com/c/go/+/227848
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/pcln.go
src/cmd/link/internal/loader/loader.go