Home | History | Annotate | Download | only in runtime
      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	$runtimert0_go(SB), R11
     20 	BR	R11
     21