2013-08-23 09:50:24 -06:00
|
|
|
// Copyright 2009 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.
|
|
|
|
|
2014-09-04 21:05:18 -06:00
|
|
|
#include "textflag.h"
|
2013-08-23 09:50:24 -06:00
|
|
|
|
2017-10-11 19:51:30 -06:00
|
|
|
// On Dragonfly argc/argv are passed in DI, not SP, so we can't use _rt0_amd64.
|
2013-08-23 09:50:24 -06:00
|
|
|
TEXT _rt0_amd64_dragonfly(SB),NOSPLIT,$-8
|
2017-10-11 19:51:30 -06:00
|
|
|
LEAQ 8(DI), SI // argv
|
|
|
|
MOVQ 0(DI), DI // argc
|
|
|
|
JMP runtime·rt0_go(SB)
|
2017-10-10 16:11:05 -06:00
|
|
|
|
|
|
|
TEXT _rt0_amd64_dragonfly_lib(SB),NOSPLIT,$0
|
|
|
|
JMP _rt0_amd64_lib(SB)
|