2011-06-29 01:37:56 -06:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2011-12-19 13:51:13 -07:00
|
|
|
#include "zasm_GOOS_GOARCH.h"
|
2014-09-04 21:05:18 -06:00
|
|
|
#include "textflag.h"
|
2011-06-29 01:37:56 -06:00
|
|
|
|
2013-08-07 13:20:05 -06:00
|
|
|
TEXT _rt0_amd64_windows(SB),NOSPLIT,$-8
|
2013-03-06 13:03:04 -07:00
|
|
|
LEAQ 8(SP), SI // argv
|
|
|
|
MOVQ 0(SP), DI // argc
|
|
|
|
MOVQ $main(SB), AX
|
|
|
|
JMP AX
|
|
|
|
|
2013-08-07 13:20:05 -06:00
|
|
|
TEXT main(SB),NOSPLIT,$-8
|
2014-09-03 09:11:16 -06:00
|
|
|
MOVQ $runtime·rt0_go(SB), AX
|
2011-06-29 01:37:56 -06:00
|
|
|
JMP AX
|
2011-07-19 08:47:33 -06:00
|
|
|
|
|
|
|
DATA runtime·iswindows(SB)/4, $1
|
|
|
|
GLOBL runtime·iswindows(SB), $4
|