mirror of
https://github.com/golang/go
synced 2024-10-04 22:31:22 -06:00
36b414f639
Now the default startup is that the program begins at _rt0_amd64_$GOOS, which sets DI = argc, SI = argv and jumps to _rt0_amd64. This makes the _rt0_amd64 entry match the expected semantics for the standard C "main" function, which we can now provide for use when linking against a standard C library. R=golang-dev, devon.odell, minux.ma CC=golang-dev https://golang.org/cl/7525043
13 lines
338 B
ArmAsm
13 lines
338 B
ArmAsm
// Copyright 2010 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.
|
|
|
|
TEXT _rt0_amd64_plan9(SB),7,$-8
|
|
LEAQ 8(SP), SI // argv
|
|
MOVQ 0(SP), DI // argc
|
|
MOVQ $_rt0_amd64(SB), AX
|
|
JMP AX
|
|
|
|
DATA runtime·isplan9(SB)/4, $1
|
|
GLOBL runtime·isplan9(SB), $4
|