]> Cypherpunks repositories - gostls13.git/commit
cmd/link: create DWARF types for autos based R_USETYPE relocs
authorThan McIntosh <thanm@google.com>
Thu, 26 Sep 2019 12:42:48 +0000 (08:42 -0400)
committerThan McIntosh <thanm@google.com>
Fri, 27 Sep 2019 13:56:45 +0000 (13:56 +0000)
commite72f002ed0f2b13f114be914f63b1ddd276675f8
treec9768ce9c2ec257aa59ae071042d0cdcf8da2a98
parent0b486d2a87a7be7db95689b1657696dc7f04e954
cmd/link: create DWARF types for autos based R_USETYPE relocs

Switch the linker over to use dummy R_USETYPE relocations on DWARF
subprogram DIEs as a means of insuring that DWARF types are created
for types of autotmp values used in live functions.

This change is part of a series intended to clean up handling of
autotmp types and remove use of autom's in the compiler and linker.

Updates #34554.

Change-Id: Ic74da6bd723ab7e4d8a16ad46e23228650d4b525
Reviewed-on: https://go-review.googlesource.com/c/go/+/197498
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/objfile/objfile.go