2016-03-01 22:57:46 +00:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
2015-04-19 21:00:48 -07:00
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
2015-01-19 14:34:58 -05:00
|
|
|
package obj
|
|
|
|
|
|
|
|
|
|
// For the linkers. Must match Go definitions.
|
|
|
|
|
// TODO(rsc): Share Go definitions with linkers directly.
|
|
|
|
|
|
|
|
|
|
const (
|
2015-02-13 14:40:36 -05:00
|
|
|
STACKSYSTEM = 0
|
|
|
|
|
StackSystem = STACKSYSTEM
|
2015-01-19 14:34:58 -05:00
|
|
|
StackBig = 4096
|
2015-10-30 12:47:24 +13:00
|
|
|
StackGuard = 720*stackGuardMultiplier + StackSystem
|
2015-01-19 14:34:58 -05:00
|
|
|
StackSmall = 128
|
|
|
|
|
StackLimit = StackGuard - StackSystem - StackSmall
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
StackPreempt = -1314 // 0xfff...fade
|
|
|
|
|
)
|