diff options
author | Ian Lance Taylor <iant@golang.org> | 2017-05-24 15:01:49 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2017-05-24 22:28:33 +0000 |
commit | daa0ddde931f1c08bffe86c7a67787d0c756993e (patch) | |
tree | 887e14bec6d52227c517af04b2aaf416ae34668f /src/runtime/rt0_linux_ppc64le.s | |
parent | 994b7eebc7e704b7132e5a69be72ca885b30b83e (diff) | |
download | go-daa0ddde931f1c08bffe86c7a67787d0c756993e.tar.gz go-daa0ddde931f1c08bffe86c7a67787d0c756993e.zip |
runtime: fix ppc64le c-archive init
We weren't setting r0 to 0, as required by our generated code.
Before this patch, the misc/cgo/testcarchive tests failed on ppc64le.
After this patch, they work, so enable them.
Change-Id: I53b16746961da9f7c34f59030a1e40953c9c1e05
Reviewed-on: https://go-review.googlesource.com/44093
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/rt0_linux_ppc64le.s')
-rw-r--r-- | src/runtime/rt0_linux_ppc64le.s | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/rt0_linux_ppc64le.s b/src/runtime/rt0_linux_ppc64le.s index 2c5541357f..bcbc9c7b31 100644 --- a/src/runtime/rt0_linux_ppc64le.s +++ b/src/runtime/rt0_linux_ppc64le.s @@ -53,6 +53,9 @@ TEXT _rt0_ppc64le_linux_lib(SB),NOSPLIT,$-8 MOVD R4, _rt0_ppc64le_linux_lib_argv<>(SB) // Synchronous initialization. + MOVD $runtime·reginit(SB), R12 + MOVD R12, CTR + BL (CTR) MOVD $runtime·libpreinit(SB), R12 MOVD R12, CTR BL (CTR) |