]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/internal/obj, cmd/link: use aux symbol for DWARF symbols
authorCherry Zhang <cherryyz@google.com>
Tue, 8 Oct 2019 01:10:41 +0000 (21:10 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 15 Oct 2019 18:55:48 +0000 (18:55 +0000)
commit27111e5fec1d0e7d9c1ba4e5cf6d01ddb06b8905
tree0e43fc7a56d7fae18d33b68beefd244722456de8
parentcab29ebd84d3fae2092337684ba82999fe97e947
[dev.link] cmd/internal/obj, cmd/link: use aux symbol for DWARF symbols

Use the auxiliary symbol mechanism to connect the text symbol and
its associated DWARF symbols. This way, the linker can track the
DWARF symbols from the text symbol, without looking up special
names.

Currently, in the linker this is only used in the deadcode pass
to track which DWARF symbols are used and need to load. Later
passes still use name lookup for now.

Change-Id: I2fe49f3b1f0ecc1472ae8aa93907cff740022d8d
Reviewed-on: https://go-review.googlesource.com/c/go/+/199801
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/internal/goobj/readnew.go
src/cmd/internal/goobj2/objfile.go
src/cmd/internal/obj/objfile2.go
src/cmd/link/internal/ld/deadcode2.go
src/cmd/link/internal/objfile/objfile2.go