github.com/zxy12/golang_with_comment@v0.0.0-20190701084843-0e6b2aff5ef3/runtime/rt0_linux_s390x.s (about) 1 // Copyright 2016 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_s390x_linux(SB),NOSPLIT|NOFRAME,$0 8 // In a statically linked binary, the stack contains argc, 9 // argv as argc string pointers followed by a NULL, envv as a 10 // sequence of string pointers followed by a NULL, and auxv. 11 // There is no TLS base pointer. 12 // 13 // TODO: Support dynamic linking entry point 14 MOVD 0(R15), R2 // argc 15 ADD $8, R15, R3 // argv 16 BR main(SB) 17 18 TEXT main(SB),NOSPLIT|NOFRAME,$0 19 MOVD $runtime·rt0_go(SB), R11 20 BR R11