Fix malloc_info namespace (bug 17570).
authorJoseph Myers <joseph@codesourcery.com>
Wed, 12 Nov 2014 22:31:38 +0000 (22:31 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 12 Nov 2014 22:31:38 +0000 (22:31 +0000)
commitc52ff39e8ee052e4a57676d65a27f09bd0a859ad
tree89b2ff9ba7308dcfd2ddabfd9abe301d9733aa49
parent2f5c1b000aaeb2c25b1df52453bba8de7f9453e2
Fix malloc_info namespace (bug 17570).

malloc_info is defined in the same file as malloc and free, but is not
an ISO C function, so should be a weak symbol.  This patch makes it
so.

Tested for x86_64 (testsuite, and that disassembly of installed shared
libraries is unchanged by the patch).

[BZ #17570]
* malloc/malloc.c (malloc_info): Rename to __malloc_info and
define as weak alias of __malloc_info.
ChangeLog
NEWS
malloc/malloc.c