]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: convert inltree syms to anonymous in pclntab
authorThan McIntosh <thanm@google.com>
Fri, 10 Apr 2020 17:07:08 +0000 (13:07 -0400)
committerThan McIntosh <thanm@google.com>
Mon, 13 Apr 2020 00:37:11 +0000 (00:37 +0000)
commitad6fcf6993307fe1acdf07b5dc174d94b58615d0
treea229bbf0a7e9d5fe134d33b56094238dbe690318
parent2f9decbe95a3038c4cb29a4bf5dfa9a296a8e776
[dev.link] cmd/link: convert inltree syms to anonymous in pclntab

The pclntab phase generates a series of "inltree.*" symbols with
inlining related pcdata; these symbols previously were given names and
enterered into the symbol lookup table, but there is no real reason to
do this, since they never need to be looked up when pcln generation is
done. Switch them over to anonymous symbols.

So as to insure that the later symtab phase picks them up correctly,
assign them a type of SGOFUNC instead of SRODATA, and change symtab to
look for this when assigning symbols to groups.

Change-Id: I38225dbb130ad7aea5d16f79cef3d8d388c61c2b
Reviewed-on: https://go-review.googlesource.com/c/go/+/227845
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/internal/ld/pcln.go
src/cmd/link/internal/ld/symtab.go