]> Cypherpunks repositories - gostls13.git/commit
runtime: jump instead of branch in netbsd/arm64 entry point
authorqmuntal <quimmuntal@gmail.com>
Mon, 29 Sep 2025 12:14:28 +0000 (14:14 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Mon, 29 Sep 2025 14:16:14 +0000 (07:16 -0700)
commit6d51f932575284d6e78baa5e98f47f737a9f5b19
treef17a155c1b8903623eb95ab020a92052f53ed0f8
parent5500cbf0e420a6d643835ec05f35abb170e3e443
runtime: jump instead of branch in netbsd/arm64 entry point

CL 706175 removed the NOFRAME directive from _rt0_arm64_netbsd but
did not change the BL instruction to a JMP instruction. This causes the
frame pointer to be stored on the stack, this making direct load from
RSP to be off by 8 bytes.

Cq-Include-Trybots: luci.golang.try:gotip-netbsd-arm64
Change-Id: I0c212fbaba74cfce508f961090dc6e66154c3054
Reviewed-on: https://go-review.googlesource.com/c/go/+/707675
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/rt0_netbsd_arm64.s