summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/rt0_windows_amd64.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/runtime/rt0_windows_amd64.s')
-rw-r--r--src/pkg/runtime/rt0_windows_amd64.s7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/pkg/runtime/rt0_windows_amd64.s b/src/pkg/runtime/rt0_windows_amd64.s
index b48c05570..32e18b02b 100644
--- a/src/pkg/runtime/rt0_windows_amd64.s
+++ b/src/pkg/runtime/rt0_windows_amd64.s
@@ -3,15 +3,16 @@
// license that can be found in the LICENSE file.
#include "zasm_GOOS_GOARCH.h"
+#include "../../cmd/ld/textflag.h"
-TEXT _rt0_amd64_windows(SB),7,$-8
+TEXT _rt0_amd64_windows(SB),NOSPLIT,$-8
LEAQ 8(SP), SI // argv
MOVQ 0(SP), DI // argc
MOVQ $main(SB), AX
JMP AX
-TEXT main(SB),7,$-8
- MOVQ $_rt0_amd64(SB), AX
+TEXT main(SB),NOSPLIT,$-8
+ MOVQ $_rt0_go(SB), AX
JMP AX
DATA runtime·iswindows(SB)/4, $1