mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: correct sigfwd on openbsd/mips64
Position independent code expects that R25 (aka $t9) contains the address of the called function. As such, use R25 when calling from sigfwd. Change-Id: I66b2b9bfa1f1bb983c7385eb2eaa19d9cd87d9fb Reviewed-on: https://go-review.googlesource.com/c/go/+/275893 Trust: Joel Sing <joel@sing.id.au> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
6362d01c15
commit
9c91cab0da
1 changed files with 2 additions and 2 deletions
|
|
@ -244,8 +244,8 @@ TEXT runtime·sigfwd(SB),NOSPLIT,$0-32
|
||||||
MOVW sig+8(FP), R4
|
MOVW sig+8(FP), R4
|
||||||
MOVV info+16(FP), R5
|
MOVV info+16(FP), R5
|
||||||
MOVV ctx+24(FP), R6
|
MOVV ctx+24(FP), R6
|
||||||
MOVV fn+0(FP), R7
|
MOVV fn+0(FP), R25 // Must use R25, needed for PIC code.
|
||||||
CALL (R7) // Alignment for ELF ABI?
|
CALL (R25)
|
||||||
RET
|
RET
|
||||||
|
|
||||||
TEXT runtime·sigtramp(SB),NOSPLIT,$192
|
TEXT runtime·sigtramp(SB),NOSPLIT,$192
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue