summaryrefslogtreecommitdiff
path: root/src/cmd/5l
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2013-08-07 10:23:24 -0700
committerKeith Randall <khr@golang.org>2013-08-07 10:23:24 -0700
commitbb4fcd5d1d87828ed5a4ad2598299461c59f986d (patch)
tree0edf8f0e4b4042a7489ebb0f320b757e9abde13b /src/cmd/5l
parentcfe40c7c1400c9b429f587a2b6f7adafc069fd8e (diff)
downloadgo-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/5l')
-rw-r--r--src/cmd/5l/5.out.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cmd/5l/5.out.h b/src/cmd/5l/5.out.h
index eda379c6f..85dd17a8e 100644
--- a/src/cmd/5l/5.out.h
+++ b/src/cmd/5l/5.out.h
@@ -31,12 +31,7 @@
#define NSNAME 8
#define NSYM 50
#define NREG 16
-
-#define NOPROF (1<<0)
-#define DUPOK (1<<1)
-#define NOSPLIT (1<<2)
-#define RODATA (1<<3)
-#define NOPTR (1<<4)
+#include "../ld/textflag.h"
#define REGRET 0
/* -1 disables use of REGARG */