]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: fix DWARF type DIE "go kind" bug for synthetic ptr types
authorThan McIntosh <thanm@google.com>
Tue, 21 Nov 2023 19:44:41 +0000 (14:44 -0500)
committerThan McIntosh <thanm@google.com>
Wed, 22 Nov 2023 15:50:07 +0000 (15:50 +0000)
commit37971b31dfde1b9c40f6d42484e528c17450a9ae
treea09408ea0cea4195697afc67818b472b455d47db
parent5abae02d273d586b13975bca0e5fda67f4f51e2f
cmd/link/internal/ld: fix DWARF type DIE "go kind" bug for synthetic ptr types

The code path in linker DWARF type generation that synthesizes pointer
type DIEs needed for other synthesized types wasn't properly setting
the DW_AT_go_kind attribute for the new pointer types.

Fixes #64231.

Change-Id: I70c338d2b33ae3b93a4c6f201e5836d91d368086
Reviewed-on: https://go-review.googlesource.com/c/go/+/544315
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/link/internal/dwtest/dwtest.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/dwarf_test.go