1
0
mirror of https://github.com/golang/go synced 2024-09-29 18:34:33 -06:00
go/misc/cgo/test/issue9400
Elias Naur 6c4f8cd0d1 misc/cgo/test: fix issue9400 test on android/386
The test for #9400 relies on an assembler function that manipulates
the stack pointer. Meanwile, it uses a global variable for
synchronization. However, position independent code on 386 use a
function call to fetch the base address for global variables.
That function call in turn overwrites the Go stack.

Fix that by fetching the global variable address once before the
stack register manipulation.

Fixes the android/386 builder.

Change-Id: Ib77bd80affaa12f09d582d09d8b84a73bd021b60
Reviewed-on: https://go-review.googlesource.com/23683
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2016-06-02 14:01:47 +00:00
..
asm_386.s misc/cgo/test: fix issue9400 test on android/386 2016-06-02 14:01:47 +00:00
asm_amd64x.s
asm_arm64.s
asm_arm.s
asm_mips64x.s misc/cgo/test: add mips64x test case for issue9400 2016-05-04 16:41:36 +00:00
asm_ppc64x.s
asm_s390x.s
gccgo.go
stubs.go