]> Cypherpunks repositories - gostls13.git/commit
cmd/link: fix some unintentional symbol creation
authorAustin Clements <austin@google.com>
Tue, 10 Oct 2017 15:58:31 +0000 (11:58 -0400)
committerAustin Clements <austin@google.com>
Wed, 11 Oct 2017 20:06:41 +0000 (20:06 +0000)
commite29efbcbcbcd7dde56ac0b4880ff8c13fdb6a89d
treea8a3a8e9f4cfe60346124d67ded248942de4ad64
parent371eda45582aea165131cc204e92bdbce3c95097
cmd/link: fix some unintentional symbol creation

There are two places in DWARF generation that create symbols when they
really just want to get the symbol if it exists. writeranges, in
particular, will create a DWARF range symbol for every single textp
symbol (though they won't get linked into any list, so they don't
affect the binary).

Fix these to use ROLookup instead of Lookup.

Change-Id: I401eadf22890e296bd08bccaa6ba2fd8fac800cd
Reviewed-on: https://go-review.googlesource.com/69971
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/dwarf.go