public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
To: libc-alpha@sourceware.org
Subject: [COMMITTED] malloc: Only set pragma weak for rpc freemem if required
Date: Wed,  5 Apr 2023 09:06:44 -0300	[thread overview]
Message-ID: <20230405120644.541570-1-adhemerval.zanella@linaro.org> (raw)

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


                 reply	other threads:[~2023-04-05 12:06 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230405120644.541570-1-adhemerval.zanella@linaro.org \
    --to=adhemerval.zanella@linaro.org \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).