]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: rewrite LC_UUID for darwin external links
authorThan McIntosh <thanm@google.com>
Mon, 20 May 2024 14:52:57 +0000 (14:52 +0000)
committerThan McIntosh <thanm@google.com>
Tue, 21 May 2024 18:45:27 +0000 (18:45 +0000)
commit3bcefa5276c4ec5475df62cfd1fde9315b121d1c
treeb26bdd5f6b59110796ef9e77b66042eed3d8cb92
parentf9ba2cff2286d378eca28c841bea8488c69fc30e
cmd/link/internal/ld: rewrite LC_UUID for darwin external links

When building Go binaries using external linking, rewrite the LC_UUID
Macho load command to replace the content placed there by the external
linker, so as to ensure that we get reproducible builds.

Updates #64947.

Change-Id: I263a89d1a067807404febbc801d4dade33bc3288
Reviewed-on: https://go-review.googlesource.com/c/go/+/586079
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/macho_combine_dwarf.go
src/cmd/link/internal/ld/macho_update_uuid.go [new file with mode: 0644]