]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/arm64: support Mach-O ARM64_RELOC_POINTER_TO_GOT in internal linking
authorqmuntal <quimmuntal@gmail.com>
Fri, 12 Sep 2025 14:23:40 +0000 (16:23 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Tue, 30 Sep 2025 14:37:51 +0000 (07:37 -0700)
commit6e95748335bdd074c5b48fe9c3af4ced18c388dd
tree9a78b2d95e3c51a36e8b105c8e72870e8cc0b145
parent742f92063e5acc3671a0bd9982e7678d864008f0
cmd/link/internal/arm64: support Mach-O ARM64_RELOC_POINTER_TO_GOT in internal linking

ARM64_RELOC_POINTER_TO_GOT is the arm64 version of X86_64_RELOC_GOT, which has been support
for many years now.

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

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