]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.5] runtime: preserve R11 in darwin/arm entrypoint
authorDavid Crawshaw <crawshaw@golang.org>
Tue, 15 Sep 2015 17:40:24 +0000 (13:40 -0400)
committerAustin Clements <austin@google.com>
Tue, 17 Nov 2015 02:20:29 +0000 (02:20 +0000)
commit6a18122614608c597511c2cc188ef771e393f1fb
tree8dba3af16446bbc73df833e5069b18962d2e796f
parenta89768461f20fc66f28420cc49df9ce765cf8253
[release-branch.go1.5] runtime: preserve R11 in darwin/arm entrypoint

The _rt0_arm_darwin_lib entrypoint has to conform to the darwin ARMv7
calling convention, which requires functions to preserve the value of
R11. Go uses R11 as the liblink REGTMP register, so save it manually.

Also avoid using R4, which is also callee-save.

Fixes #12590

Change-Id: I9c3b374e330f81ff8fc9c01fa20505a33ddcf39a
Reviewed-on: https://go-review.googlesource.com/14603
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-on: https://go-review.googlesource.com/16968
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/rt0_darwin_arm.s