diff options
author | Keith Randall <khr@golang.org> | 2013-08-07 10:23:24 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2013-08-07 10:23:24 -0700 |
commit | bb4fcd5d1d87828ed5a4ad2598299461c59f986d (patch) | |
tree | 0edf8f0e4b4042a7489ebb0f320b757e9abde13b /src/cmd/8l/8.out.h | |
parent | cfe40c7c1400c9b429f587a2b6f7adafc069fd8e (diff) | |
download | go-bb4fcd5d1d87828ed5a4ad2598299461c59f986d.tar.gz |
cmd/ld: Put the textflag constants in a separate file.
We can then include this file in assembly to replace
cryptic constants like "7" with meaningful constants
like "(NOPROF|DUPOK|NOSPLIT)".
Converting just pkg/runtime/asm*.s for now. Dropping NOPROF
and DUPOK from lots of places where they aren't needed.
More .s files to come in a subsequent changelist.
A nonzero number in the textflag field now means
"has not been converted yet".
R=golang-dev, daniel.morsing, rsc, khr
CC=golang-dev
https://codereview.appspot.com/12568043
Diffstat (limited to 'src/cmd/8l/8.out.h')
-rw-r--r-- | src/cmd/8l/8.out.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cmd/8l/8.out.h b/src/cmd/8l/8.out.h index 7683d50ad..a804ae94b 100644 --- a/src/cmd/8l/8.out.h +++ b/src/cmd/8l/8.out.h @@ -30,11 +30,7 @@ #define NSYM 50 #define NSNAME 8 -#define NOPROF (1<<0) -#define DUPOK (1<<1) -#define NOSPLIT (1<<2) -#define RODATA (1<<3) -#define NOPTR (1<<4) +#include "../ld/textflag.h" enum as { |