github.com/razvanm/vanadium-go-1.3@v0.0.0-20160721203343-4a65068e5915/src/runtime/cgo/netbsd.c (about) 1 // Copyright 2010 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 // Supply environ and __progname, because we don't 8 // link against the standard NetBSD crt0.o and the 9 // libc dynamic library needs them. 10 11 #pragma dataflag NOPTR 12 char *environ[1]; 13 #pragma dataflag NOPTR 14 char *__progname; 15 16 #pragma dynexport environ environ 17 #pragma dynexport __progname __progname