mirror of
https://github.com/golang/go
synced 2024-10-03 14:21:22 -06:00
d6f6e420fc
This CL adds the real cmd/internal/obj packages. Collectively they correspond to the liblink library. The conversion was done using rsc.io/c2go's run script at rsc.io/c2go repo version 706fac7. This is not the final conversion, just the first working draft. There will be more updates, but this works well enough to use with go tool objwriter and pass all.bash. Change-Id: I9359e835425f995a392bb2fcdbebf29511477bed Reviewed-on: https://go-review.googlesource.com/3046 Reviewed-by: Ian Lance Taylor <iant@golang.org>
34 lines
853 B
Go
34 lines
853 B
Go
// 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 (
|
|
// Don't profile the marked routine. This flag is deprecated.
|
|
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
|
|
)
|