2015-01-19 14:34:58 -05:00
|
|
|
// Copyright 2013 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.
|
|
|
|
|
|
|
|
|
|
// This file defines flags attached to various functions
|
|
|
|
|
// and data objects. The compilers, assemblers, and linker must
|
|
|
|
|
// all agree on these values.
|
|
|
|
|
|
|
|
|
|
package obj
|
|
|
|
|
|
|
|
|
|
const (
|
2015-05-18 15:50:00 -04:00
|
|
|
// Don't profile the marked routine.
|
|
|
|
|
//
|
|
|
|
|
// Deprecated: Not implemented, do not use.
|
2015-01-19 14:34:58 -05:00
|
|
|
NOPROF = 1
|
|
|
|
|
|
|
|
|
|
// It is ok for the linker to get multiple of these symbols. It will
|
|
|
|
|
// pick one of the duplicates to use.
|
|
|
|
|
DUPOK = 2
|
|
|
|
|
|
|
|
|
|
// Don't insert stack check preamble.
|
|
|
|
|
NOSPLIT = 4
|
|
|
|
|
|
|
|
|
|
// Put this data in a read-only section.
|
|
|
|
|
RODATA = 8
|
|
|
|
|
|
|
|
|
|
// This data contains no pointers.
|
|
|
|
|
NOPTR = 16
|
|
|
|
|
|
|
|
|
|
// This is a wrapper function and should not count as disabling 'recover'.
|
|
|
|
|
WRAPPER = 32
|
|
|
|
|
|
|
|
|
|
// This function uses its incoming context register.
|
|
|
|
|
NEEDCTXT = 64
|
2015-04-18 08:14:08 +12:00
|
|
|
|
|
|
|
|
// When passed to ggloblsym, causes Local to be set to true on the LSym it creates.
|
|
|
|
|
LOCAL = 128
|
2015-08-11 12:29:00 +12:00
|
|
|
|
|
|
|
|
// Allocate a word of thread local storage and store the offset from the
|
|
|
|
|
// thread local base to the thread local storage in this variable.
|
|
|
|
|
TLSBSS = 256
|
2015-10-09 12:44:27 +13:00
|
|
|
|
|
|
|
|
// Do not insert instructions to allocate a stack frame for this function.
|
|
|
|
|
// Only valid on functions that declare a frame size of 0.
|
|
|
|
|
// TODO(mwhudson): only implemented for ppc64x at present.
|
|
|
|
|
NOFRAME = 512
|
2015-01-19 14:34:58 -05:00
|
|
|
)
|