-
Notifications
You must be signed in to change notification settings - Fork 18k
[release-branch.go1.18] cmd/cgo: allow DW_TAG_variable's with no name #57067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[release-branch.go1.18] cmd/cgo: allow DW_TAG_variable's with no name #57067
Conversation
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 golang#57044 Updates golang#53000 Change-Id: I2cf063160508687067c7672cef0517bccd707d7b Reviewed-on: https://go-review.googlesource.com/c/go/+/406816 TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> (cherry picked from commit e66f895)
This PR (HEAD: 32208e4) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/455055 to see it. Tip: You can toggle comments from me using the |
This PR (HEAD: 32208e4) has been imported to Gerrit for code review. Please visit https://go-review.googlesource.com/c/go/+/455056 to see it. Tip: You can toggle comments from me using the |
Hm... looks like it was imported twice ? |
Message from Michael Pratt: Patch Set 1: Hold+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/455056. |
Message from Sebastiaan van Stijn: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/455056. |
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 <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> (cherry picked from commit e66f895) Change-Id: I2cf063160508687067c7672cef0517bccd707d7b GitHub-Last-Rev: 32208e4 GitHub-Pull-Request: #57067 Reviewed-on: https://go-review.googlesource.com/c/go/+/455055 Reviewed-by: Ian Lance Taylor <[email protected]> Run-TryBot: David Chase <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
Message from Michael Pratt: Patch Set 2: Run-TryBot+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/455055. |
Message from Ian Lance Taylor: Patch Set 2: Code-Review+2 Please don’t reply on this GitHub thread. Visit golang.org/cl/455055. |
Message from David Chase: Patch Set 2: Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/455055. |
Message from David Chase: Patch Set 3: Commit message was updated. Copied Votes:
Please don’t reply on this GitHub thread. Visit golang.org/cl/455055. |
Message from David Chase: Patch Set 3: Run-TryBot+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/455055. |
Message from Gopher Robot: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/455055. |
Message from Gopher Robot: Patch Set 3: TryBot-Result+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/455055. |
This PR is being closed because golang.org/cl/455055 has been merged. |
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 [email protected]
Run-TryBot: Ian Lance Taylor [email protected]
Auto-Submit: Ian Lance Taylor [email protected]
Reviewed-by: Ian Lance Taylor [email protected]
(cherry picked from commit e66f895)