[1/4] sunrpc: Turn clnt_sperrno into a libc_hidden_nolink_sunrpc symbol
Commit Message
Before this change, the function had a default symbol version even
without --enable-obsolete-rpc.
---
sunrpc/clnt_perr.c | 4 ++++
1 file changed, 4 insertions(+)
Comments
On Mon, Jul 6, 2020 at 12:05 PM Florian Weimer via Libc-alpha
<libc-alpha@sourceware.org> wrote:
>
> Before this change, the function had a default symbol version even
> without --enable-obsolete-rpc.
> ---
> sunrpc/clnt_perr.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/sunrpc/clnt_perr.c b/sunrpc/clnt_perr.c
> index dd5b10688e..67499fd03f 100644
> --- a/sunrpc/clnt_perr.c
> +++ b/sunrpc/clnt_perr.c
> @@ -257,7 +257,11 @@ clnt_sperrno (enum clnt_stat stat)
> }
> return _("RPC: (unknown error code)");
> }
> +#ifdef EXPORT_RPC_SYMBOLS
> libc_hidden_def (clnt_sperrno)
> +#else
> +libc_hidden_nolink_sunrpc (clnt_sperrno, GLIBC_2_0)
> +#endif
>
> void
> clnt_perrno (enum clnt_stat num)
> --
> 2.25.4
>
LGTM.
Thanks.
@@ -257,7 +257,11 @@ clnt_sperrno (enum clnt_stat stat)
}
return _("RPC: (unknown error code)");
}
+#ifdef EXPORT_RPC_SYMBOLS
libc_hidden_def (clnt_sperrno)
+#else
+libc_hidden_nolink_sunrpc (clnt_sperrno, GLIBC_2_0)
+#endif
void
clnt_perrno (enum clnt_stat num)