diff options
| author | Ulrich Drepper <drepper@gmail.com> | 2011-04-16 21:59:36 -0400 |
|---|---|---|
| committer | Ulrich Drepper <drepper@gmail.com> | 2011-04-16 21:59:36 -0400 |
| commit | 7b57bfe5988e476ea40934457dfd1c8a231e2391 (patch) | |
| tree | 33dbec2b9a1a8fd8472a214945090f31d5372a8e | |
| parent | e6c61494125126d2ba77e5d99f83887a2ed49783 (diff) | |
| download | glibc-7b57bfe5988e476ea40934457dfd1c8a231e2391.tar.xz glibc-7b57bfe5988e476ea40934457dfd1c8a231e2391.zip | |
Obsolete RPC implementation in libc.
71 files changed, 993 insertions, 623 deletions
@@ -1,3 +1,77 @@ +2011-04-16 Ulrich Drepper <drepper@gmail.com> + + * Makefile: Add rules to build linkobj/libc.so. + * include/libc-symbols.h: Define libc_hidden_nolink. + * include/rpc/auth.h: Mark functions which are to be hidden. + * include/rpc/auth_des.h: Likewise. + * include/rpc/auth_unix.h: Likewise. + * include/rpc/clnt.h: Likewise. + * include/rpc/des_crypt.h: Likewise. + * include/rpc/key_prot.h: Likewise. + * include/rpc/pmap_clnt.h: Likewise. + * include/rpc/pmap_prot.h: Likewise. + * include/rpc/pmap_rmt.h: Likewise. + * include/rpc/rpc_msg.h: Likewise. + * include/rpc/svc.h: Likewise. + * include/rpc/svc_auth.h: Likewise. + * include/rpc/xdr.h: Likewise. + * nis/Makefile: Link all DSOs against linkobj/libc.so. + * nss/Makefile: Likewise. + * sunrpc/Makefile: Don't install headers. Build library with normal + entry points. Don't build rpcinfo. Link RPC tests appropriately. + * sunrpc/auth_des.c: Hide exported symbols by default, export some + for the compat linking library. Remove use of INTDEF/INTUSE. + * sunrpc/auth_none.c: Likewise. + * sunrpc/auth_unix.c: Likewise. + * sunrpc/authdes_prot.c: Likewise. + * sunrpc/authuxprot.c: Likewise. + * sunrpc/clnt_gen.c: Likewise. + * sunrpc/clnt_perr.c: Likewise. + * sunrpc/clnt_raw.c: Likewise. + * sunrpc/clnt_simp.c: Likewise. + * sunrpc/clnt_tcp.c: Likewise. + * sunrpc/clnt_udp.c: Likewise. + * sunrpc/clnt_unix.c: Likewise. + * sunrpc/des_crypt.c: Likewise. + * sunrpc/des_soft.c: Likewise. + * sunrpc/get_myaddr.c: Likewise. + * sunrpc/key_call.c: Likewise. + * sunrpc/key_prot.c: Likewise. + * sunrpc/netname.c: Likewise. + * sunrpc/pm_getmaps.c: Likewise. + * sunrpc/pm_getport.c: Likewise. + * sunrpc/pmap_clnt.c: Likewise. + * sunrpc/pmap_prot.c: Likewise. + * sunrpc/pmap_prot2.c: Likewise. + * sunrpc/pmap_rmt.c: Likewise. + * sunrpc/publickey.c: Likewise. + * sunrpc/rpc_cmsg.c: Likewise. + * sunrpc/rpc_common.c: Likewise. + * sunrpc/rpc_dtable.c: Likewise. + * sunrpc/rpc_prot.c: Likewise. + * sunrpc/rpc_thread.c: Likewise. + * sunrpc/rtime.c: Likewise. + * sunrpc/svc.c: Likewise. + * sunrpc/svc_auth.c: Likewise. + * sunrpc/svc_authux.c: Likewise. + * sunrpc/svc_raw.c: Likewise. + * sunrpc/svc_run.c: Likewise. + * sunrpc/svc_simple.c: Likewise. + * sunrpc/svc_tcp.c: Likewise. + * sunrpc/svc_udp.c: Likewise. + * sunrpc/svc_unix.c: Likewise. + * sunrpc/svcauth_des.c: Likewise. + * sunrpc/xcrypt.c: Likewise. + * sunrpc/xdr.c: Likewise. + * sunrpc/xdr_array.c: Likewise. + * sunrpc/xdr_float.c: Likewise. + * sunrpc/xdr_intXX_t.c: Likewise. + * sunrpc/xdr_mem.c: Likewise. + * sunrpc/xdr_rec.c: Likewise. + * sunrpc/xdr_ref.c: Likewise. + * sunrpc/xdr_sizeof.c: Likewise. + * sunrpc/xdr_stdio.c: Likewise. + 2011-04-10 Ulrich Drepper <drepper@gmail.com> [BZ #12650] @@ -1,4 +1,4 @@ -# Copyright (C) 1991-2002,2003,2004,2005,2006,2008,2009 +# Copyright (C) 1991-2002,2003,2004,2005,2006,2008,2009,2011 # Free Software Foundation, Inc. # This file is part of the GNU C Library. @@ -63,8 +63,8 @@ endif # $(AUTOCONF) = no +subdir_targets := subdir_lib objects objs others subdir_mostlyclean \ subdir_clean subdir_distclean subdir_realclean \ tests xtests subdir_lint.out \ - subdir_update-abi subdir_check-abi \ - subdir_echo-headers \ + subdir_update-abi subdir_check-abi \ + subdir_echo-headers \ subdir_install \ subdir_objs subdir_stubs subdir_testclean \ $(addprefix install-, no-libc.a bin lib data headers others) @@ -135,6 +135,20 @@ lib-noranlib: subdir_lib ifeq (yes,$(build-shared)) # Build the shared object from the PIC object library. lib: $(common-objpfx)libc.so + +lib: $(common-objpfx)linkobj/libc.so + +$(common-objpfx)linkobj/libc.so: $(elfobjdir)/soinit.os $(common-objpfx)linkobj/libc_pic.a $(elfobjdir)/sofini.os $(elfobjdir)/interp.os $(elfobjdir)/ld.so $(common-objpfx)shlib.lds $(common-objpfx)elf/ld.so + $(build-shlib) + +$(common-objpfx)linkobj/libc_pic.a: $(common-objpfx)libc_pic.a $(common-objpfx)sunrpc/librpc_compat_pic.a + $(..)./scripts/mkinstalldirs $(common-objpfx)linkobj + (cd $(common-objpfx)linkobj; \ + $(AR) x ../libc_pic.a; \ + rm $$($(AR) t ../sunrpc/librpc_compat_pic.a | sed 's/^compat-//'); \ + $(AR) x ../sunrpc/librpc_compat_pic.a; \ + $(AR) cr libc_pic.a *.os; \ + rm *.os) endif @@ -247,11 +261,11 @@ tests-clean: tests: $(objpfx)c++-types-check.out $(objpfx)check-local-headers.out ifneq ($(CXX),no) check-data := $(firstword $(wildcard \ - $(foreach D,$(add-ons) scripts,\ - $(patsubst %,$D/data/c++-types-%.data,\ - $(abi-name) \ - $(addsuffix -$(config-os),\ - $(config-machine) \ + $(foreach D,$(add-ons) scripts,\ + $(patsubst %,$D/data/c++-types-%.data,\ + $(abi-name) \ + $(addsuffix -$(config-os),\ + $(config-machine) \ $(base-machine)))))) ifneq (,$(check-data)) $(objpfx)c++-types-check.out: $(check-data) scripts/check-c++-types.sh @@ -408,18 +422,18 @@ install: remove-old-headers endif endif -headers2_0 := __math.h bytesex.h confname.h direntry.h elfclass.h \ - errnos.h fcntlbits.h huge_val.h ioctl-types.h \ - ioctls.h iovec.h jmp_buf.h libc-lock.h local_lim.h \ - mathcalls.h mpool.h nan.h ndbm.h posix1_lim.h \ - posix2_lim.h posix_opt.h resourcebits.h schedbits.h \ - selectbits.h semaphorebits.h sigaction.h sigcontext.h \ - signum.h sigset.h sockaddrcom.h socketbits.h stab.def \ - statbuf.h statfsbuf.h stdio-lock.h stdio_lim.h \ - syscall-list.h termbits.h timebits.h ustatbits.h \ - utmpbits.h utsnamelen.h waitflags.h waitstatus.h \ - xopen_lim.h gnu/types.h sys/ipc_buf.h \ - sys/kernel_termios.h sys/msq_buf.h sys/sem_buf.h \ +headers2_0 := __math.h bytesex.h confname.h direntry.h elfclass.h \ + errnos.h fcntlbits.h huge_val.h ioctl-types.h \ + ioctls.h iovec.h jmp_buf.h libc-lock.h local_lim.h \ + mathcalls.h mpool.h nan.h ndbm.h posix1_lim.h \ + posix2_lim.h posix_opt.h resourcebits.h schedbits.h \ + selectbits.h semaphorebits.h sigaction.h sigcontext.h \ + signum.h sigset.h sockaddrcom.h socketbits.h stab.def \ + statbuf.h statfsbuf.h stdio-lock.h stdio_lim.h \ + syscall-list.h termbits.h timebits.h ustatbits.h \ + utmpbits.h utsnamelen.h waitflags.h waitstatus.h \ + xopen_lim.h gnu/types.h sys/ipc_buf.h \ + sys/kernel_termios.h sys/msq_buf.h sys/sem_buf.h \ sys/shm_buf.h sys/socketcall.h sigstack.h .PHONY: remove-old-headers @@ -1,4 +1,4 @@ -GNU C Library NEWS -- history of user-visible changes. 2011-4-10 +GNU C Library NEWS -- history of user-visible changes. 2011-4-16 Copyright (C) 1992-2009, 2010, 2011 Free Software Foundation, Inc. See the end for copying conditions. @@ -7,6 +7,12 @@ using `glibc' in the "product" field. Version 2.14 +* The RPC implementation in libc is obsoleted. Old programs keep working + but new programs cannot be linked with the routines in libc anymore. + Programs in need |
