[glibc] malloc: Remove unused aliases for malloc symbols

Wilco Dijkstra via Glibc-cvs <[email protected]>
Newsgroups gmane.comp.lib.glibc.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=02d9614158a491dbaf9450572d652884cf34a719

commit 02d9614158a491dbaf9450572d652884cf34a719
Author: Wilco Dijkstra <[email protected]>
Date:   Mon Apr 13 12:52:36 2026 +0000

    malloc: Remove unused aliases for malloc symbols
    
    Malloc defines a lot of aliases which are unused, not exported and not needed.
    
    Reviewed-by: H.J. Lu <[email protected]>
    Reviewed-by: DJ Delorie <[email protected]>

Diff:
---
 malloc/malloc.c | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/malloc/malloc.c b/malloc/malloc.c
index febd7b516f..57b58382b1 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -5459,19 +5459,16 @@ __malloc_info (int options, FILE *fp)
 #if IS_IN (libc)
 weak_alias (__malloc_info, malloc_info)
 
-strong_alias (__libc_calloc, __calloc) weak_alias (__libc_calloc, calloc)
-strong_alias (__libc_free, __free) strong_alias (__libc_free, free)
-strong_alias (__libc_malloc, __malloc) strong_alias (__libc_malloc, malloc)
-strong_alias (__libc_memalign, __memalign)
+weak_alias (__libc_calloc, calloc)
+strong_alias (__libc_free, free)
+strong_alias (__libc_malloc, malloc)
 weak_alias (__libc_memalign, memalign)
-strong_alias (__libc_realloc, __realloc) strong_alias (__libc_realloc, realloc)
-strong_alias (__libc_valloc, __valloc) weak_alias (__libc_valloc, valloc)
-strong_alias (__libc_pvalloc, __pvalloc) weak_alias (__libc_pvalloc, pvalloc)
-strong_alias (__libc_mallinfo, __mallinfo)
+strong_alias (__libc_realloc, realloc)
+weak_alias (__libc_valloc, valloc)
+weak_alias (__libc_pvalloc, pvalloc)
 weak_alias (__libc_mallinfo, mallinfo)
-strong_alias (__libc_mallinfo2, __mallinfo2)
 weak_alias (__libc_mallinfo2, mallinfo2)
-strong_alias (__libc_mallopt, __mallopt) weak_alias (__libc_mallopt, mallopt)
+weak_alias (__libc_mallopt, mallopt)
 
 weak_alias (__malloc_stats, malloc_stats)
 weak_alias (__malloc_usable_size, malloc_usable_size)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.