aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ld
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2013-08-29 12:36:59 -0700
committerKeith Randall <khr@golang.org>2013-08-29 12:36:59 -0700
commited467db6d8db16dcc2956d85f0ce114635e12f06 (patch)
tree2cae5751925bdc6138cebd7a8c6c4d2380330420 /src/cmd/ld
parentf5f0e40e803125e47c64372fc7d808cbd8b9577a (diff)
downloadgo-ed467db6d8db16dcc2956d85f0ce114635e12f06.tar.xz
cmd/cc,runtime: change preprocessor to expand macros inside of
#pragma textflag and #pragma dataflag directives. Update dataflag directives to use symbols instead of integer constants. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/13310043
Diffstat (limited to 'src/cmd/ld')
-rw-r--r--src/cmd/ld/textflag.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/ld/textflag.h b/src/cmd/ld/textflag.h
index 7b16865be4..64ae647fb6 100644
--- a/src/cmd/ld/textflag.h
+++ b/src/cmd/ld/textflag.h
@@ -7,13 +7,13 @@
// all agree on these values.
// Don't profile the marked routine. This flag is deprecated.
-#define NOPROF (1<<0)
+#define NOPROF 1
// It is ok for the linker to get multiple of these symbols. It will
// pick one of the duplicates to use.
-#define DUPOK (1<<1)
+#define DUPOK 2
// Don't insert stack check preamble.
-#define NOSPLIT (1<<2)
+#define NOSPLIT 4
// Put this data in a read-only section.
-#define RODATA (1<<3)
+#define RODATA 8
// This data contains no pointers.
-#define NOPTR (1<<4)
+#define NOPTR 16