Commit 2560f8fe authored by Russ Cox's avatar Russ Cox

runtime/cgo: use old-style indirect call on arm

TBR=elias.naur
CC=golang-dev
https://golang.org/cl/12943043
parent dd50dac5
...@@ -25,8 +25,12 @@ EXT(crosscall_arm2): ...@@ -25,8 +25,12 @@ EXT(crosscall_arm2):
mov r5, r1 mov r5, r1
mov r0, r2 mov r0, r2
mov r1, r3 mov r1, r3
bl r5 // setmg(m, g) // setmg(m, g)
bl r4 // fn() mov lr, pc
mov pc, r5
// fn()
mov lr, pc
mov pc, r4
pop {r4, r5, r6, r7, r8, r9, r10, r11, ip, pc} pop {r4, r5, r6, r7, r8, r9, r10, r11, ip, pc}
.globl EXT(__stack_chk_fail_local) .globl EXT(__stack_chk_fail_local)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment