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.
This commit is contained in:
Adhemerval Zanella 2023-04-04 16:42:33 -03:00
parent 5476f8cd2e
commit b47d02b9c6

View File

@ -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