2010-01-06 18:58:55 -07:00
|
|
|
// Copyright 2009 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.
|
|
|
|
|
2013-08-07 13:20:05 -06:00
|
|
|
#include "../../cmd/ld/textflag.h"
|
|
|
|
|
|
|
|
TEXT _rt0_386_windows(SB),NOSPLIT,$12
|
2013-03-07 20:57:10 -07:00
|
|
|
MOVL 12(SP), AX
|
|
|
|
LEAL 16(SP), BX
|
|
|
|
MOVL AX, 4(SP)
|
|
|
|
MOVL BX, 8(SP)
|
|
|
|
MOVL $-1, 0(SP) // return PC for main
|
|
|
|
JMP main(SB)
|
|
|
|
|
2013-08-07 13:20:05 -06:00
|
|
|
TEXT main(SB),NOSPLIT,$0
|
2013-06-11 14:49:24 -06:00
|
|
|
JMP _rt0_go(SB)
|
2011-01-20 08:22:20 -07:00
|
|
|
|
2013-03-07 20:57:10 -07:00
|
|
|
|
2011-01-20 08:22:20 -07:00
|
|
|
DATA runtime·iswindows(SB)/4, $1
|
|
|
|
GLOBL runtime·iswindows(SB), $4
|