github.com/roboticscm/goman@v0.0.0-20210203095141-87c07b4a0a55/src/runtime/cgo/freebsd.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  // +build freebsd
     6  
     7  #include "textflag.h"
     8  
     9  // Supply environ and __progname, because we don't
    10  // link against the standard FreeBSD crt0.o and the
    11  // libc dynamic library needs them.
    12  
    13  #pragma dataflag NOPTR
    14  char *environ[1];
    15  #pragma dataflag NOPTR
    16  char *__progname;
    17  
    18  #pragma dynexport environ environ
    19  #pragma dynexport __progname __progname