arrfab / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1065574-4.patch

147e83
commit c52ff39e8ee052e4a57676d65a27f09bd0a859ad
147e83
Author: Joseph Myers <joseph@codesourcery.com>
147e83
Date:   Wed Nov 12 22:31:38 2014 +0000
147e83
147e83
    Fix malloc_info namespace (bug 17570).
147e83
    
147e83
    malloc_info is defined in the same file as malloc and free, but is not
147e83
    an ISO C function, so should be a weak symbol.  This patch makes it
147e83
    so.
147e83
    
147e83
    Tested for x86_64 (testsuite, and that disassembly of installed shared
147e83
    libraries is unchanged by the patch).
147e83
    
147e83
            [BZ #17570]
147e83
            * malloc/malloc.c (malloc_info): Rename to __malloc_info and
147e83
            define as weak alias of __malloc_info.
147e83
147e83
diff --git a/malloc/malloc.c b/malloc/malloc.c
147e83
index c99b26d4a85e1b22..18e00315c6edba4d 100644
147e83
--- a/malloc/malloc.c
147e83
+++ b/malloc/malloc.c
147e83
@@ -5007,7 +5007,7 @@ weak_alias (__posix_memalign, posix_memalign)
147e83
 
147e83
 
147e83
 int
147e83
-malloc_info (int options, FILE *fp)
147e83
+__malloc_info (int options, FILE *fp)
147e83
 {
147e83
   /* For now, at least.  */
147e83
   if (options != 0)
147e83
@@ -5180,6 +5180,7 @@ malloc_info (int options, FILE *fp)
147e83
 
147e83
   return 0;
147e83
 }
147e83
+weak_alias (__malloc_info, malloc_info)
147e83
 
147e83
 
147e83
 strong_alias (__libc_calloc, __calloc) weak_alias (__libc_calloc, calloc)