LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2011 The Go Authors. All rights reserved. | 1 // Copyright 2011 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #include "zasm_GOOS_GOARCH.h" | 5 #include "zasm_GOOS_GOARCH.h" |
| 6 #include "../../cmd/ld/textflag.h" |
6 | 7 |
7 TEXT _rt0_amd64_windows(SB),7,$-8 | 8 TEXT _rt0_amd64_windows(SB),NOSPLIT,$-8 |
8 LEAQ 8(SP), SI // argv | 9 LEAQ 8(SP), SI // argv |
9 MOVQ 0(SP), DI // argc | 10 MOVQ 0(SP), DI // argc |
10 MOVQ $main(SB), AX | 11 MOVQ $main(SB), AX |
11 JMP AX | 12 JMP AX |
12 | 13 |
13 TEXT main(SB),7,$-8 | 14 TEXT main(SB),NOSPLIT,$-8 |
14 MOVQ $_rt0_go(SB), AX | 15 MOVQ $_rt0_go(SB), AX |
15 JMP AX | 16 JMP AX |
16 | 17 |
17 DATA runtime·iswindows(SB)/4, $1 | 18 DATA runtime·iswindows(SB)/4, $1 |
18 GLOBL runtime·iswindows(SB), $4 | 19 GLOBL runtime·iswindows(SB), $4 |
LEFT | RIGHT |