1
0
mirror of https://github.com/golang/go synced 2024-11-18 14:34:39 -07: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 all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
asm_arm64.s all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
asm_arm.s all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
asm_mips64x.s misc/cgo/test: add mips64x test case for issue9400 2016-05-04 16:41:36 +00:00
asm_ppc64x.s all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
asm_s390x.s misc/cgo/test: add RewindAndSetgid implementation for s390x 2016-03-22 04:34:24 +00:00
gccgo.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
stubs.go all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00