diff options
| author | Keith Randall <khr@golang.org> | 2013-08-29 12:36:59 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2013-08-29 12:36:59 -0700 |
| commit | ed467db6d8db16dcc2956d85f0ce114635e12f06 (patch) | |
| tree | 2cae5751925bdc6138cebd7a8c6c4d2380330420 /src/pkg/runtime/os_linux.c | |
| parent | f5f0e40e803125e47c64372fc7d808cbd8b9577a (diff) | |
| download | go-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/pkg/runtime/os_linux.c')
| -rw-r--r-- | src/pkg/runtime/os_linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/os_linux.c b/src/pkg/runtime/os_linux.c index 0c2c40441a..cb45fe8cee 100644 --- a/src/pkg/runtime/os_linux.c +++ b/src/pkg/runtime/os_linux.c @@ -169,7 +169,7 @@ runtime·get_random_data(byte **rnd, int32 *rnd_len) *rnd = runtime·startup_random_data; *rnd_len = runtime·startup_random_data_len; } else { - #pragma dataflag 16 // no pointers + #pragma dataflag NOPTR static byte urandom_data[HashRandomBytes]; int32 fd; fd = runtime·open("/dev/urandom", 0 /* O_RDONLY */, 0); |
