]> Cypherpunks repositories - gostls13.git/commit
cmd/compile,cmd/link: move to DWARF5-style location lists
authorThan McIntosh <thanm@golang.org>
Fri, 13 Dec 2024 01:47:30 +0000 (20:47 -0500)
committerThan McIntosh <thanm@golang.org>
Tue, 4 Mar 2025 12:48:53 +0000 (04:48 -0800)
commitbef2bb80a942a06bda2ff3aaedf46ff42d43aaf0
tree5ddcdd2b8fc062881d64e140d433882d2887459e
parent4c0a47a8ff74c5fe4366e1016250607943562569
cmd/compile,cmd/link: move to DWARF5-style location lists

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

Updates #26379.

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