]> Cypherpunks repositories - gostls13.git/commit
cmd/compile,cmd/link: move to DWARF5-style range lists
authorThan McIntosh <thanm@golang.org>
Thu, 12 Dec 2024 00:20:58 +0000 (19:20 -0500)
committerThan McIntosh <thanm@golang.org>
Tue, 4 Mar 2025 12:48:46 +0000 (04:48 -0800)
commit4c0a47a8ff74c5fe4366e1016250607943562569
tree21cf106c0b3352ff5b0c58ab03910ee752869e57
parent4f45b2b7e079fc03d3444642e8a33ce6f959c6a6
cmd/compile,cmd/link: move to DWARF5-style range lists

This patch updates the compiler to generate DWARF5-style range lists
(e.g. entries that feed into .debug_rnglists) as opposed to
DWARF4-style range lists (which wind up in .debug_ranges). The DWARF5
format is much more compact, and can make indirect references to text
address via the .debug_addr section for further space savings.

Updates #26379.

Change-Id: I273a6283484b7fe33d79d5412e31c5155b22a7c0
Reviewed-on: https://go-review.googlesource.com/c/go/+/635345
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/internal/dwarf/dwarf.go
src/cmd/internal/dwarf/dwarf_defs.go
src/cmd/link/internal/ld/dwarf.go