]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/macho: new package for handling mach-o files in toolchain
authorCherry Mui <cherryyz@google.com>
Mon, 7 Oct 2024 15:20:15 +0000 (11:20 -0400)
committerCherry Mui <cherryyz@google.com>
Mon, 21 Oct 2024 17:56:21 +0000 (17:56 +0000)
commitf2d9f5ffcaf3aabaa8c8bd128a22fc07355f267e
tree6ec2b16eeeb0ddf84258fd8887518736eedbe35c
parent20ed60311848ca40e51cb430fa602dd83a9c726f
cmd/internal/macho: new package for handling mach-o files in toolchain

Currently the linker has some code handling and manipulating
Mach-O files. Specifically, it augments the debug/macho package
with file offset and length, so the content can be handled or
updated easily with the file.

Move this code to an internal package, so it can be used by other
part of the toolchain, e.g. buildid computation.

For #68678.

Cq-Include-Trybots: luci.golang.try:gotip-darwin-amd64_14,gotip-darwin-arm64_13
Change-Id: I2311af0a06441b7fd887ca5c6ed9e6fc44670a16
Reviewed-on: https://go-review.googlesource.com/c/go/+/618596
Reviewed-by: Than McIntosh <thanm@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/dist/buildtool.go
src/cmd/internal/macho/macho.go [new file with mode: 0644]
src/cmd/link/internal/ld/macho.go
src/cmd/link/internal/ld/macho_combine_dwarf.go
src/cmd/link/internal/ld/macho_update_uuid.go