rsc.io/go@v0.0.0-20150416155037-e040fd465409/src/cmd/internal/obj/textflag.go (about)

     1  // Copyright 2013 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  // This file defines flags attached to various functions
     6  // and data objects.  The compilers, assemblers, and linker must
     7  // all agree on these values.
     8  
     9  package obj
    10  
    11  const (
    12  	// Don't profile the marked routine.  This flag is deprecated.
    13  	NOPROF = 1
    14  
    15  	// It is ok for the linker to get multiple of these symbols.  It will
    16  	// pick one of the duplicates to use.
    17  	DUPOK = 2
    18  
    19  	// Don't insert stack check preamble.
    20  	NOSPLIT = 4
    21  
    22  	// Put this data in a read-only section.
    23  	RODATA = 8
    24  
    25  	// This data contains no pointers.
    26  	NOPTR = 16
    27  
    28  	// This is a wrapper function and should not count as disabling 'recover'.
    29  	WRAPPER = 32
    30  
    31  	// This function uses its incoming context register.
    32  	NEEDCTXT = 64
    33  )