1 // Do not edit. Bootstrap copy of /Volumes/Android/buildbot/src/android/build-tools/out/obj/go/src/cmd/internal/obj/stack.go 2 3 //line /Volumes/Android/buildbot/src/android/build-tools/out/obj/go/src/cmd/internal/obj/stack.go:1 4 // Copyright 2011 The Go Authors. All rights reserved. 5 // Use of this source code is governed by a BSD-style 6 // license that can be found in the LICENSE file. 7 8 // Inferno utils/5l/span.c 9 // http://code.google.com/p/inferno-os/source/browse/utils/5l/span.c 10 // 11 // Copyright 1994-1999 Lucent Technologies Inc. All rights reserved. 12 // Portions Copyright 1995-1997 C H Forsyth (forsyth (a] terzarima.net) 13 // Portions Copyright 1997-1999 Vita Nuova Limited 14 // Portions Copyright 2000-2007 Vita Nuova Holdings Limited (www.vitanuova.com) 15 // Portions Copyright 2004,2006 Bruce Ellis 16 // Portions Copyright 2005-2007 C H Forsyth (forsyth (a] terzarima.net) 17 // Revisions Copyright 2000-2007 Lucent Technologies Inc. and others 18 // Portions Copyright 2009 The Go Authors. All rights reserved. 19 // 20 // Permission is hereby granted, free of charge, to any person obtaining a copy 21 // of this software and associated documentation files (the "Software"), to deal 22 // in the Software without restriction, including without limitation the rights 23 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 24 // copies of the Software, and to permit persons to whom the Software is 25 // furnished to do so, subject to the following conditions: 26 // 27 // The above copyright notice and this permission notice shall be included in 28 // all copies or substantial portions of the Software. 29 // 30 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 31 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 32 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 33 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 34 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 35 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 36 // THE SOFTWARE. 37 38 package obj 39 40 // For the linkers. Must match Go definitions. 41 // TODO(rsc): Share Go definitions with linkers directly. 42 43 const ( 44 STACKSYSTEM = 0 45 StackSystem = STACKSYSTEM 46 StackBig = 4096 47 StackGuard = 640*stackGuardMultiplier + StackSystem 48 StackSmall = 128 49 StackLimit = StackGuard - StackSystem - StackSmall 50 ) 51 52 const ( 53 StackPreempt = -1314 // 0xfff...fade 54 ) 55