go/src/debug
Nikola Jokic 8b39612641 debug/buildinfo: recognize macOS fat binary in go version
buildinfo did not check for fat magic, which caused go version to report
unrecognized file format.

This change reads the fat file and passes the first arch file to machoExe.

Fixes #58796

Change-Id: I45cd26729352e46cc7ecfb13f2e9a8d96d62e0a0
Reviewed-on: https://go-review.googlesource.com/c/go/+/473615
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2023-03-08 15:57:58 +00:00
..
buildinfo debug/buildinfo: recognize macOS fat binary in go version 2023-03-08 15:57:58 +00:00
dwarf all: fix comment typos 2022-11-05 21:02:45 +00:00
elf debug/elf: retrieve values for dynamic section tags 2023-03-07 18:26:40 +00:00
gosym debug/gosym: rename nameoff to nameOff to match runtime 2022-09-07 16:39:44 +00:00
macho debug/macho: use saferio to read dynamic indirect symbols 2023-02-28 06:02:49 +00:00
pe all: fix typos in go file comments 2023-01-20 03:27:26 +00:00
plan9obj all: fix function names in comments 2022-11-04 22:36:12 +00:00