]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] cmd/cgo: allow DW_TAG_variable's with no name
authorAlex Brachet <abrachet@google.com>
Sat, 3 Dec 2022 18:52:26 +0000 (18:52 +0000)
committerDavid Chase <drchase@google.com>
Mon, 19 Dec 2022 22:23:40 +0000 (22:23 +0000)
commite6adccb3c56385f8d840165008f2606098e13e56
tree433092e25424b819b8516b06d89389b0c5730aa2
parent6aa1e6d52d6e2791f356ccf2b1177510ba4dade1
[release-branch.go1.18] 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 #57044
Updates #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>
(cherry picked from commit e66f895667cd51d0d28c42d369a803c12db8bb35)

Change-Id: I2cf063160508687067c7672cef0517bccd707d7b
GitHub-Last-Rev: 32208e4fa20272b80cfffd95a4701e1473f47ca9
GitHub-Pull-Request: golang/go#57067
Reviewed-on: https://go-review.googlesource.com/c/go/+/455055
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/cgo/gcc.go