Skip to content

Commit

Permalink
goversion: detect asm for go1.10.1 on linux
Browse files Browse the repository at this point in the history
Fixes rsc#4.
  • Loading branch information
rsc committed Apr 3, 2018
1 parent e2aeda8 commit 38f6ce4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions version/asm.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,18 @@ var amd64Matcher = matcher{
// mov %rax, ADDR(%rip)
0x48, 0x85, 0xc0, 0x75, pWild, 0x48, 0x8d, 0x05, pWild, pWild, pWild, pWild, 0x48, 0x89, 0x05, pWild | pAddr, pWild, pWild, pWild | pEnd,
},
{opDone,
// schedinit (toward end)
// mov ADDR(%rip), %rcx
// test %rcx, %rcx
// jne <short>
// movq $0x7, ADDR(%rip)
//
0x48, 0x8b, 0x0d, pWild, pWild, pWild, pWild,
0x48, 0x85, 0xc9,
0x75, pWild,
0x48, 0xc7, 0x05 | pEnd, pWild | pAddr, pWild, pWild, pWild, 0x07, 0x00, 0x00, 0x00,
},
}

var DebugMatch bool
Expand Down

0 comments on commit 38f6ce4

Please sign in to comment.