mirror of
https://github.com/golang/go
synced 2024-11-19 02:04:42 -07:00
runtime: fix windows/amd64 build after pc-relative 6l change
TBR=iant CC=golang-codereviews https://golang.org/cl/131900043
This commit is contained in:
parent
a6feaf3aff
commit
3e9c7a8a1d
@ -228,7 +228,8 @@ TEXT runtime·callbackasm1(SB),NOSPLIT,$0
|
||||
ADDQ $8, SP
|
||||
|
||||
// determine index into runtime·cbctxts table
|
||||
SUBQ $runtime·callbackasm(SB), AX
|
||||
MOVQ $runtime·callbackasm(SB), DX
|
||||
SUBQ DX, AX
|
||||
MOVQ $0, DX
|
||||
MOVQ $5, CX // divide by 5 because each call instruction in runtime·callbacks is 5 bytes long
|
||||
DIVL CX,
|
||||
|
Loading…
Reference in New Issue
Block a user