]> Cypherpunks repositories - gostls13.git/commit
debug/dwarf: skip over zero-length compilation units
authorRuss Cox <rsc@golang.org>
Tue, 20 Apr 2021 19:41:24 +0000 (15:41 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 23 Apr 2021 21:42:56 +0000 (21:42 +0000)
commit073f9139497401e019e4357d110c2801c5be31e1
treeb7c6fbc7f727c545d15d24f4530c6bf5b23011e8
parentcef3a442eaa1f86b81bb67fb881c5bb9e446fb13
debug/dwarf: skip over zero-length compilation units

DWARF sections generated by mingw-clang seem to include these
(not often - only one out of many in the binary that I am looking at).
Skipping over them, everything parses correctly.

This makes TestDefaultLinkerDWARF pass on windows/arm64.

Change-Id: Ie4a7daa1423f51cbc8c4aac88b1d27c3b52ee880
Reviewed-on: https://go-review.googlesource.com/c/go/+/312031
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/debug/dwarf/unit.go