]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add R_USETYPE relocs to func syms for autom types
authorThan McIntosh <thanm@google.com>
Thu, 26 Sep 2019 12:38:33 +0000 (08:38 -0400)
committerThan McIntosh <thanm@google.com>
Fri, 27 Sep 2019 13:56:32 +0000 (13:56 +0000)
commit0b486d2a87a7be7db95689b1657696dc7f04e954
tree6c13d07b98266540a2865fb6e50e555a369e6d82
parentac1d440ea6576dcfb851374dca69cf480f593517
cmd/compile: add R_USETYPE relocs to func syms for autom types

During DWARF processing, keep track of the go type symbols for types
directly or indirectly referenced by auto variables in a function,
and add a set of dummy R_USETYPE relocations to the function's DWARF
subprogram DIE symbol.

This change is not useful on its own, but is part of a series of
changes intended to clean up handling of autom's in the compiler
and linker.

Updates #34554.

Change-Id: I974afa9b7092aa5dba808f74e00aa931249d6fe9
Reviewed-on: https://go-review.googlesource.com/c/go/+/197497
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/compile/internal/gc/pgen.go
src/cmd/internal/obj/link.go
src/cmd/internal/obj/objfile.go