]> Cypherpunks repositories - gostls13.git/commit
runtime: fix addmoduledata to follow the platform ABI
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Mon, 11 May 2015 23:59:14 +0000 (11:59 +1200)
committerIan Lance Taylor <iant@golang.org>
Tue, 12 May 2015 00:50:32 +0000 (00:50 +0000)
commitbe0cb9224b68d5be4e03fd35396d2c2f0755adad
tree10dbcf186a5e156e05deafda390185b935c86150
parent64b1aa12b3c9a524179a583da13fa82dd4812559
runtime: fix addmoduledata to follow the platform ABI

addmoduledata is called from a .init_array function and need to follow the
platform ABI. It contains accesses to global data which are rewritten to use
R15 by the assembler, and as R15 is callee-save we need to save it.

Change-Id: I03893efb1576aed4f102f2465421f256f3bb0f30
Reviewed-on: https://go-review.googlesource.com/9941
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/testshared/test.bash
src/runtime/asm_amd64.s