]> Cypherpunks repositories - gostls13.git/commit
runtime: preserve R11 in darwin/arm entrypoint
authorDavid Crawshaw <crawshaw@golang.org>
Tue, 15 Sep 2015 17:40:24 +0000 (13:40 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Wed, 16 Sep 2015 11:23:32 +0000 (11:23 +0000)
commitfb3027003738ef67b2c68bc46eb8d8841d04bd7d
tree5309d20c44e057d63ff8d3223ae52ebe7397e118
parent955b4caa48feea19f53196daea29ee7cccce6e35
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>
src/runtime/rt0_darwin_arm.s