]> Cypherpunks repositories - gostls13.git/commit
cmd/link: abstract DWARF metadata symbol lookup
authorAustin Clements <austin@google.com>
Mon, 22 Oct 2018 20:36:24 +0000 (16:36 -0400)
committerAustin Clements <austin@google.com>
Mon, 12 Nov 2018 20:27:21 +0000 (20:27 +0000)
commitec4ae29f52cee3f6e448d8279708ea47d553f35f
tree18132de06e83c9895f7f8ae39dd6238a46371ff2
parent571236543f222e9fcb8ddfaa3151505a7de4d6f0
cmd/link: abstract DWARF metadata symbol lookup

The compiler passes a lot of DWARF metadata about functions to the
linker via symbols whose names are derived from the function's own
symbol name. We look up these symbols in several places. This is about
to get slightly more complex as we introduce ABIs as symbol versions,
so abstract this lookup pattern into a helper function.

For #27539.

Change-Id: Ic71f6b5dc6608a5a5f5f515808981e6d6f5d728e
Reviewed-on: https://go-review.googlesource.com/c/146858
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
src/cmd/link/internal/ld/dwarf.go