]> Cypherpunks repositories - gostls13.git/commit
debug/macho: fix DWARF for section names longer than 16 chars
authorAlessandro Arzilli <alessandro.arzilli@gmail.com>
Wed, 28 Aug 2024 08:16:10 +0000 (10:16 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 30 Aug 2024 17:51:51 +0000 (17:51 +0000)
commit4f327f271d5cf0f6cc6e1bbac72aecaa25ca6e6f
treebb9c11e22ceef3216b74319e4c9901edf28c9e8e
parent7300b9e633f8b8cb49e2e95f4c4693657ded3451
debug/macho: fix DWARF for section names longer than 16 chars

The Mach-O file format truncates section names to 16 characters
maximum, which makes some sections unrecognizable to debug/dwarf.
This CL works around this problem by re-expanding the truncated section
names.

This problem was originally reported as:
https://github.com/go-delve/delve/issues/3797

Change-Id: I8c4a02493b8d5c3f63c831da43f6292124edf670
Reviewed-on: https://go-review.googlesource.com/c/go/+/608995
Auto-Submit: Ian Lance Taylor <iant@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/debug/macho/file.go