]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: revise representation of dwarfp
authorThan McIntosh <thanm@google.com>
Fri, 17 Apr 2020 13:11:57 +0000 (09:11 -0400)
committerThan McIntosh <thanm@google.com>
Mon, 20 Apr 2020 19:25:18 +0000 (19:25 +0000)
commitc32b59026475342c9cf187b50e890a94c146bc79
treea6a8bbcbcfd426c9531959db5d2ed0c5b09d4fb5
parent817bd10caee03fbf6fb6231934d9cf9a1b13c170
[dev.link] cmd/link: revise representation of dwarfp

Change linker DWARF generation to move away from emitting a single
giant list of DWARF symbols, and instead emit a list of descriptors,
with each descriptor holding the symbols for a specific DWARF section.

While placing all DWARF symbols in a single lists does come in handy
in certain instances, it also creates a lot of confusion and weird
code in other cases, specifically where we want to perform operations
on a section-by-section basis (resulting in code that tries to
re-discover section boundaries by walking/inspecting the list).

Change-Id: I4dac81bd38cba903c9fd7004d613597e76dfb77a
Reviewed-on: https://go-review.googlesource.com/c/go/+/228780
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/dwarf2.go
src/cmd/link/internal/ld/elf.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/macho.go
src/cmd/link/internal/ld/pe.go
src/cmd/link/internal/ld/xcoff.go