aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPetr Vorel <pvorel@suse.cz>2020-07-13 19:36:35 +0200
committerFlorian Weimer <fweimer@redhat.com>2020-07-13 19:36:35 +0200
commit5500cdba4018ddbda7909bc7f4f9718610b43cf0 (patch)
treeb7b3e48b06eb294cdac28b2828d97d94a028429e /include
parent3486924dc749d87ca7e5983b59baab474c6808a8 (diff)
downloadglibc-5500cdba4018ddbda7909bc7f4f9718610b43cf0.zip
glibc-5500cdba4018ddbda7909bc7f4f9718610b43cf0.tar.gz
glibc-5500cdba4018ddbda7909bc7f4f9718610b43cf0.tar.bz2
Remove --enable-obsolete-rpc configure flag
Sun RPC was removed from glibc. This includes rpcgen program, librpcsvc, and Sun RPC headers. Also test for bug #20790 was removed (test for rpcgen). Backward compatibility for old programs is kept only for architectures and ABIs that have been added in or before version 2.28. libtirpc is mature enough, librpcsvc and rpcgen are provided in rpcsvc-proto project. NOTE: libnsl code depends on Sun RPC (installed libnsl headers use installed Sun RPC headers), thus --enable-obsolete-rpc was a dependency for --enable-obsolete-nsl (removed in a previous commit). The arc ABI list file has to be updated because the port was added with the sunrpc symbols Tested-by: Carlos O'Donell <carlos@redhat.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/libc-symbols.h7
-rw-r--r--include/shlib-compat.h8
2 files changed, 2 insertions, 13 deletions
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index 2948377..60153bb 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -625,12 +625,7 @@ for linking")
# define libc_hidden_tls_proto(name, attrs...) hidden_tls_proto (name, ##attrs)
# define libc_hidden_def(name) hidden_def (name)
# define libc_hidden_weak(name) hidden_weak (name)
-# ifdef LINK_OBSOLETE_RPC
- /* libc_hidden_nolink_sunrpc should only get used in sunrpc code. */
-# define libc_hidden_nolink_sunrpc(name, version) hidden_def (name)
-# else
-# define libc_hidden_nolink_sunrpc(name, version) hidden_nolink (name, libc, version)
-# endif
+# define libc_hidden_nolink_sunrpc(name, version) hidden_nolink (name, libc, version)
# define libc_hidden_ver(local, name) hidden_ver (local, name)
# define libc_hidden_data_def(name) hidden_data_def (name)
# define libc_hidden_tls_def(name) hidden_tls_def (name)
diff --git a/include/shlib-compat.h b/include/shlib-compat.h
index c8fc692..b582818 100644
--- a/include/shlib-compat.h
+++ b/include/shlib-compat.h
@@ -127,15 +127,9 @@
#define compat_symbol_reference_2(local, symbol, name) \
symbol_version_reference (local, symbol, name)
-# ifdef LINK_OBSOLETE_RPC
-/* Export the symbol for both static and dynamic linking. */
-# define libc_sunrpc_symbol(name, aliasname, version) \
- strong_alias (name, aliasname)
-# else
/* Export the symbol only for shared-library compatibility. */
-# define libc_sunrpc_symbol(name, aliasname, version) \
+#define libc_sunrpc_symbol(name, aliasname, version) \
compat_symbol (libc, name, aliasname, version);
-# endif
/* The TEST_COMPAT macro acts just like the SHLIB_COMPAT macro except
that it does not check IS_IN. It is used by tests that are testing