diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-04-04 16:42:33 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-04-05 09:03:42 -0300 |
commit | b47d02b9c69459031902f3dadca19510e54fbd9e (patch) | |
tree | a23ce2bce5c826403b0d12c9fbab455d411e014a | |
parent | 5476f8cd2e68800a705e80f568599e1a38facd93 (diff) | |
download | glibc-b47d02b9c69459031902f3dadca19510e54fbd9e.tar.gz glibc-b47d02b9c69459031902f3dadca19510e54fbd9e.tar.xz glibc-b47d02b9c69459031902f3dadca19510e54fbd9e.zip |
malloc: Only set pragma weak for rpc freemem if required
Both __rpc_freemem and __rpc_thread_destroy are only used if the the compat symbols are required.
-rw-r--r-- | malloc/set-freeres.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/malloc/set-freeres.c b/malloc/set-freeres.c index 42d70d3971..1aab34b586 100644 --- a/malloc/set-freeres.c +++ b/malloc/set-freeres.c @@ -51,8 +51,10 @@ # pragma weak __libc_printf_freemem # pragma weak __libc_fmtmsg_freemem # pragma weak __libc_setenv_freemem -# pragma weak __rpc_freemem -# pragma weak __rpc_thread_destroy +# if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_31) +# pragma weak __rpc_freemem +# pragma weak __rpc_thread_destroy +# endif # pragma weak __libc_getaddrinfo_freemem # pragma weak __libc_tzset_freemem # pragma weak __libc_localealias_freemem |