• Elias Naur's avatar
    misc/cgo/test: fix issue9400 test on android/386 · 6c4f8cd0
    Elias Naur authored
    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: 's avatarDavid Crawshaw <crawshaw@golang.org>
    6c4f8cd0
Name
Last commit
Last update
..
errors Loading commit data...
fortran Loading commit data...
gmp Loading commit data...
life Loading commit data...
nocgo Loading commit data...
stdio Loading commit data...
test Loading commit data...
testasan Loading commit data...
testcarchive Loading commit data...
testcshared Loading commit data...
testgodefs Loading commit data...
testsanitizers Loading commit data...
testshared Loading commit data...
testsigfwd Loading commit data...
testso Loading commit data...
testsovar Loading commit data...
testtls Loading commit data...