]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/arm64: support Mach-O ARM64_RELOC_SUBTRACTOR in internal linking
authorqmuntal <quimmuntal@gmail.com>
Fri, 12 Sep 2025 14:31:01 +0000 (16:31 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Tue, 30 Sep 2025 14:38:03 +0000 (07:38 -0700)
commit7c8166d02d36a5dfcdbe3dd1b148412cceacf9f2
treec6c1d802834fb855e4e0251c149db6b57bf9974e
parent6e95748335bdd074c5b48fe9c3af4ced18c388dd
cmd/link/internal/arm64: support Mach-O ARM64_RELOC_SUBTRACTOR in internal linking

ARM64_RELOC_SUBTRACTOR is the arm64 version of X86_64_RELOC_SUBTRACTOR, which
has been recently implemented in CL 660715.

The standard library still doesn't need it, but I've found it necessary
when statically linking against a library I own.

Change-Id: I138281b12f2304e3673f7dc92f7137e48bf68fdd
Reviewed-on: https://go-review.googlesource.com/c/go/+/703316
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/link/internal/arm64/asm.go
src/cmd/link/internal/ld/macho.go