Skip to content

Commit b10ea87

Browse files
author
Josh Hawn
committed
Borrow textflags.h for go1.3 support
Docker-DCO-1.1-Signed-off-by: Josh Hawn <[email protected]> (github: jlhawn)
1 parent e716c68 commit b10ea87

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

sha256/sha256block_amd64.s

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
#include "textflag.h"
5+
#include "../textflag.h"
66

77
// SHA256 block routine. See sha256block.go for Go equivalent.
88
//

sha512/sha512block_amd64.s

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
#include "textflag.h"
5+
#include "../textflag.h"
66

77
// SHA512 block routine. See sha512block.go for Go equivalent.
88
//

textflag.h

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
// This file defines flags attached to various functions
6+
// and data objects. The compilers, assemblers, and linker must
7+
// all agree on these values.
8+
9+
// Don't profile the marked routine. This flag is deprecated.
10+
#define NOPROF 1
11+
// It is ok for the linker to get multiple of these symbols. It will
12+
// pick one of the duplicates to use.
13+
#define DUPOK 2
14+
// Don't insert stack check preamble.
15+
#define NOSPLIT 4
16+
// Put this data in a read-only section.
17+
#define RODATA 8
18+
// This data contains no pointers.
19+
#define NOPTR 16
20+
// This is a wrapper function and should not count as disabling 'recover'.
21+
#define WRAPPER 32
22+
// This function uses its incoming context register.
23+
#define NEEDCTXT 64

0 commit comments

Comments
 (0)