Text file src/runtime/rt0_linux_s390x.s

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

View as plain text