]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: extract Mach-O load command parsing
authorElias Naur <mail@eliasnaur.com>
Wed, 20 Mar 2019 19:10:38 +0000 (20:10 +0100)
committerElias Naur <mail@eliasnaur.com>
Thu, 21 Mar 2019 01:35:21 +0000 (01:35 +0000)
commit0fe1986a72ea578390d4909988a1d7cb3a687544
tree6ba28994bf812270d04b7e45eef051c2f8ea6e73
parentba965640a45f5d94976c3ad6c92396cab539155a
cmd/link/internal/ld: extract Mach-O load command parsing

We're going to need the ability to extract the LC_VERSION_MIN_* and
LC_BUILD_VERSION load commands. This CL adds peekMachoPlatform to do
that and in the process simplifies machoCombineDwarf.

While here, disable DWARF combining for Apple platforms other than
macOS (watchOS, tvOS, bridgeOS), not just iOS.

Updates #22395

Change-Id: I4862b0f15ccc87b7be1a6532b4d37b47c8f7f243
Reviewed-on: https://go-review.googlesource.com/c/go/+/168459
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/macho.go
src/cmd/link/internal/ld/macho_combine_dwarf.go