]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: allow DW_TAG_variable's with no name
authorAlex Brachet <abrachet@google.com>
Thu, 19 May 2022 16:58:46 +0000 (16:58 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 20 May 2022 21:03:28 +0000 (21:03 +0000)
commite66f895667cd51d0d28c42d369a803c12db8bb35
treeb5e8874ef853ebda37082b900bcf07e0e4015556
parent4dd9458162a08efeb3f3da9a9f3ab4f13113d4b9
cmd/cgo: allow DW_TAG_variable's with no name

https://reviews.llvm.org/D123534 is emitting DW_TAG_variable's
that don't have a DW_AT_name. This is allowed in the DWARF
standard. It is adding DIE's for string literals for better
symbolization on buffer overlows etc on these strings. They
no associated name because they are not user provided variables.

Fixes #53000

Change-Id: I2cf063160508687067c7672cef0517bccd707d7b
Reviewed-on: https://go-review.googlesource.com/c/go/+/406816
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/cgo/gcc.go