]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: better naming for Loader container/subsym methods, part 2 of 2
authorThan McIntosh <thanm@google.com>
Wed, 1 Jul 2020 12:45:16 +0000 (08:45 -0400)
committerThan McIntosh <thanm@google.com>
Mon, 6 Jul 2020 22:56:35 +0000 (22:56 +0000)
commit1e9381207ef6c8b12f84d8b33414d04847d6d893
treec52b0d488fd206dae69cb14faf1259f75c6e6d6c
parent3c3cc195643d441c09ad102e8e6f7412d975102b
[dev.link] cmd/link: better naming for Loader container/subsym methods, part 2 of 2

Introduce a new loader method "SetCarrierSym", to be used when
establishing container/containee symbol relationships for symbol
bucketing in the symtab phase.

This new method is intended to be employed in situations where you
have a series of related symbols will be represented by a single
carrier symbol as a combined entity. The pattern here is that the
sub-symbols contain content but will be anonymous from a symbol table
perspective; the carrier symbol has no content itself but will appear
in the symbol table. Examples of carrier symbols that follow this
model are "runtime.itablink" and "runtime.typelink".

Change-Id: I1a3391a71062c7c740cb108b3fa210b7f69b81ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/240509
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/link/internal/ld/symtab.go
src/cmd/link/internal/loader/loader.go