]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: add support for "not in symbol table" attribute
authorThan McIntosh <thanm@google.com>
Tue, 7 Jan 2020 20:47:43 +0000 (15:47 -0500)
committerThan McIntosh <thanm@google.com>
Fri, 10 Jan 2020 12:37:02 +0000 (12:37 +0000)
commite5dc6ff8743549eda241c22228e9dff4a6e6b48e
treeb5025d503027b8c81ca3178081677b51a0c05758
parent3fa9500dd1fdf6788da2193e22cc17eeeda78475
[dev.link] cmd/link: add support for "not in symbol table" attribute

Add loader.Loader support for recording whether symbols should appear
in the symbol table (e.g. AttrNotInSymbolTable). Change the preloader
to apply this attribute to selected symbols (e.g. go.string.*,
runtime.gcbits.*) during the initial scan over object file defs, since
at that point the name is available.

Change-Id: I54be9a649107e90c0fd544a1c0ba87e2d98833ad
Reviewed-on: https://go-review.googlesource.com/c/go/+/213778
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/internal/loader/loader.go