Text file
src/runtime/rt0_windows_386.s
1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 #include "textflag.h"
6
7 TEXT _rt0_386_windows(SB),NOSPLIT,$0
8 JMP _rt0_386(SB)
9
10 // When building with -buildmode=(c-shared or c-archive), this
11 // symbol is called. For dynamic libraries it is called when the
12 // library is loaded. For static libraries it is called when the
13 // final executable starts, during the C runtime initialization
14 // phase.
15 TEXT _rt0_386_windows_lib(SB),NOSPLIT,$0
16 JMP _rt0_386_lib(SB)
17
18 TEXT _main(SB),NOSPLIT,$0
19 // Remove the return address from the stack.
20 // rt0_go doesn't expect it to be there.
21 ADDL $4, SP
22 JMP runtime·rt0_go(SB)
23
View as plain text