]> Cypherpunks repositories - gostls13.git/commit
runtime: fix aix/ppc64 library initialization
authorqmuntal <quimmuntal@gmail.com>
Wed, 1 Oct 2025 08:59:53 +0000 (10:59 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Thu, 2 Oct 2025 18:51:00 +0000 (11:51 -0700)
commitf03c392295cfd57c29c92fcc300181f8016cf5ac
treea774052f46bd749bc6bc776db7f788015b6b0ef3
parent707454b41fa1fea7e0286b1370dea47d3422b2cb
runtime: fix aix/ppc64 library initialization

AIX sets the argc and argv parameters in R14 and R15, but
_rt0_ppc64x_lib expects them to be in R3 and R4. Also, call reginit in
_rt0_ppc64x_lib.

These issues were oversights from CL 706395 which went unnoticed because
there if no LUCI aix/ppc64 builder (see #67299).

Change-Id: I93a2798739935fbcead3e6162b4b90db7e740aa5
Reviewed-on: https://go-review.googlesource.com/c/go/+/708255
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Paul Murphy <paumurph@redhat.com>
src/runtime/asm_ppc64x.s
src/runtime/rt0_aix_ppc64.s