]> Cypherpunks repositories - gostls13.git/commit
[dev.debug] cmd/link: let the linker combine .debug_ranges, remove globals
authorHeschi Kreinick <heschi@google.com>
Tue, 23 May 2017 00:17:31 +0000 (20:17 -0400)
committerHeschi Kreinick <heschi@google.com>
Wed, 26 Jul 2017 18:39:50 +0000 (18:39 +0000)
commit59fe2fbfe549f3dffec940581a71b42644ee5320
tree305f99c82c574bbb87d6009f1eb8f82d031777d6
parent2d57d94ac314fd32529b1b2a92a086cb2dce0057
[dev.debug] cmd/link: let the linker combine .debug_ranges, remove globals

The linker is pretty good at combining a bunch of symbols into a
section, so let it do .debug_ranges the normal way. Along the way,
remove a bunch of globals that were only used by one function that would
only be called once per invocation.

Change-Id: I1a528a438b193c41e7c444e8830516b07f11affc
Reviewed-on: https://go-review.googlesource.com/43890
Reviewed-by: Alessandro Arzilli <alessandro.arzilli@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/dwarf.go