mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-29 13:26:45 -04:00
The ARM64 flags were not being correctly set for Mac M series laptops. Fixes golang/go#43046 Change-Id: I1d884dccd3f3a0a010ad7babbab26b73731ab583 Reviewed-on: https://go-review.googlesource.com/c/sys/+/737260 Auto-Submit: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com>
13 lines
439 B
ArmAsm
13 lines
439 B
ArmAsm
// Copyright 2024 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
//go:build darwin && arm64 && gc
|
|
|
|
#include "textflag.h"
|
|
|
|
TEXT libc_sysctlbyname_trampoline<>(SB),NOSPLIT,$0-0
|
|
JMP libc_sysctlbyname(SB)
|
|
GLOBL ·libc_sysctlbyname_trampoline_addr(SB), RODATA, $8
|
|
DATA ·libc_sysctlbyname_trampoline_addr(SB)/8, $libc_sysctlbyname_trampoline<>(SB)
|