]> Cypherpunks repositories - gostls13.git/commit
cmd/link: move DIE of global variables to their compile unit
authorAlessandro Arzilli <alessandro.arzilli@gmail.com>
Tue, 25 Sep 2018 09:52:24 +0000 (11:52 +0200)
committerThan McIntosh <thanm@google.com>
Thu, 27 Sep 2018 11:58:35 +0000 (11:58 +0000)
commit1c8943bd59157878141faab0c93848f45d3d51d1
tree6b37776f5597d20dce5ec90f71ebe7fb43f29703
parent4ba4c5ae795f30f167faef7c15dba3e32afc53d0
cmd/link: move DIE of global variables to their compile unit

The DIEs for global variables were all assigned to the first emitted
compile unit in debug_info, regardless of what it was. Move them
instead to their respective compile units.

Change-Id: If794fa0ba4702f5b959c6e8c16119b16e7ecf6d8
Reviewed-on: https://go-review.googlesource.com/137235
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/compile/internal/ssa/stmtlines_test.go
src/cmd/internal/dwarf/dwarf.go
src/cmd/link/dwarf_test.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/objfile/objfile.go