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.
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.
13 MOVD 0(R15), R2 // argc
14 ADD $8, R15, R3 // argv
17 TEXT _rt0_s390x_linux_lib(SB), NOSPLIT, $0
18 MOVD $_rt0_s390x_lib(SB), R1
21 TEXT main(SB), NOSPLIT|NOFRAME, $0
22 MOVD $runtime·rt0_go(SB), R1