diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-02-06 05:33:30 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-02-06 05:33:30 +0000 |
commit | 4f7408c7acb37dd53294e848326a317358f8fdd0 (patch) | |
tree | f9238592fdc9c4be62950d5ce1344b45e6d8b154 /sunrpc | |
parent | 970aa10f95b3e289e5814e6c83d483a05e56c21c (diff) | |
download | glibc-4f7408c7acb37dd53294e848326a317358f8fdd0.tar glibc-4f7408c7acb37dd53294e848326a317358f8fdd0.tar.gz glibc-4f7408c7acb37dd53294e848326a317358f8fdd0.tar.bz2 glibc-4f7408c7acb37dd53294e848326a317358f8fdd0.zip |
* include/rpc/auth.h: Use libc_hidden_proto for _null_auth.
* sunrpc/rpc_common.c: Add libc_hidden_def for _null_auth. Also
move _null_auth to .rodata.
Diffstat (limited to 'sunrpc')
-rw-r--r-- | sunrpc/rpc_common.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sunrpc/rpc_common.c b/sunrpc/rpc_common.c index 6b22b3f66b..f7ad961c66 100644 --- a/sunrpc/rpc_common.c +++ b/sunrpc/rpc_common.c @@ -39,7 +39,11 @@ * This file should only contain common data (global data) that is exported * by public interfaces */ -struct opaque_auth _null_auth; +/* We are very tricky here. We want to have _null_auth in a read-only + section but we cannot add const to the type because this isn't how + the variable is declared. So we use the section attribute. */ +struct opaque_auth _null_auth __attribute__ ((nocommon, section (".rodata"))); +libc_hidden_def (_null_auth) fd_set svc_fdset; struct rpc_createerr rpc_createerr; struct pollfd *svc_pollfd; |