From ed467db6d8db16dcc2956d85f0ce114635e12f06 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Thu, 29 Aug 2013 12:36:59 -0700 Subject: 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 --- src/cmd/ld/textflag.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/cmd/ld') 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 -- cgit v1.3-5-g9baa