Mark all the rpc 'ops' vectors, for auth, client, service, and xdr,
authorguenther <guenther@openbsd.org>
Mon, 14 Feb 2022 03:38:59 +0000 (03:38 +0000)
committerguenther <guenther@openbsd.org>
Mon, 14 Feb 2022 03:38:59 +0000 (03:38 +0000)
commit8d4335cb9be89a0813640b54b89d23507be8c423
tree16a18cde9c2ce1508906630b7f2a36fd15bfbd43
parent23ea498649a96f0adad96960b586eb63cb4de864
Mark all the rpc 'ops' vectors, for auth, client, service, and xdr,
as const, moving them from .data to .data.rel.ro.  The other BSDs
did this a long time ago; NetBSD did a chunk in 1998, which is long
enough I didn't bother to get exact dates for others.

ok deraadt@ millert@
15 files changed:
include/rpc/auth.h
include/rpc/clnt.h
include/rpc/svc.h
include/rpc/xdr.h
lib/libc/rpc/auth_none.c
lib/libc/rpc/auth_unix.c
lib/libc/rpc/clnt_raw.c
lib/libc/rpc/clnt_tcp.c
lib/libc/rpc/clnt_udp.c
lib/libc/rpc/svc_raw.c
lib/libc/rpc/svc_tcp.c
lib/libc/rpc/svc_udp.c
lib/libc/rpc/xdr_mem.c
lib/libc/rpc/xdr_rec.c
lib/libc/rpc/xdr_stdio.c