]> Cypherpunks repositories - gostls13.git/commit
cmd/link: put C static symbols in the symbol table
authorCherry Zhang <cherryyz@google.com>
Fri, 16 Oct 2020 21:37:52 +0000 (17:37 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 19 Oct 2020 13:50:22 +0000 (13:50 +0000)
commit6398b4725caa3867e5f02f344c82a0da53cb750a
tree62b73fed63ff36d6e9a4352d40c7d15ea4d6263f
parent385327257353bab5f528dda3d5c36d679460b1de
cmd/link: put C static symbols in the symbol table

We don't put Go static symbols in the symbol table, as they are
always compiler-generated (there is no way to define a static
symbol in user code in Go). We retain static symbols in assembly
code, as it may be user-defined. Also retain static symbols in C.

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