* [COMMITTED] malloc: Only set pragma weak for rpc freemem if required
@ 2023-04-05 12:06 Adhemerval Zanella
0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2023-04-05 12:06 UTC (permalink / raw)
To: libc-alpha
Both __rpc_freemem and __rpc_thread_destroy are only used if the
the compat symbols are required.
---
malloc/set-freeres.c | 6 ++++--
1 file 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
--
2.34.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-05 12:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-05 12:06 [COMMITTED] malloc: Only set pragma weak for rpc freemem if required Adhemerval Zanella
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).