]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: expose loader PatchDWARFName hook for asm subprogram DIEs
authorThan McIntosh <thanm@google.com>
Thu, 20 Feb 2020 19:16:04 +0000 (14:16 -0500)
committerThan McIntosh <thanm@google.com>
Thu, 5 Mar 2020 16:20:57 +0000 (16:20 +0000)
commitef44bd8413a9174f83af39538c62277ea195405a
tree93264f7d3497957a52e0362ea2f0ed9925e2050d
parent85d62a91ee51e5cd46561ae132c151258cfe3e0d
[dev.link] cmd/link: expose loader PatchDWARFName hook for asm subprogram DIEs

Add a new loader method PatchDWARFName to patch up live DWARF function
DIEs during DWARF generation. This is needed to handle subprogram DIE
symbols emitted by the assembler, which still embeds "". package
tokens into the data sections of these dies.

Note: this is expected to be a temporary hack, as we are going to
transition the assembler to do the patching itself when passed the
"-p" option (once this happens the plan is to toss all of the various
PatchDWARFName helpers).

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