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