mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-09 04:11:27 +08:00
372fe247b1
Hide internal __malloc_check_init function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/malloc.h (__malloc_check_init): Add attribute_hidden.
19 lines
500 B
C
19 lines
500 B
C
#ifndef _MALLOC_H
|
|
#include <malloc/malloc.h>
|
|
|
|
# ifndef _ISOMAC
|
|
|
|
/* In the GNU libc we rename the global variable
|
|
`__malloc_initialized' to `__libc_malloc_initialized'. */
|
|
#define __malloc_initialized __libc_malloc_initialized
|
|
/* Nonzero if the malloc is already initialized. */
|
|
extern int __malloc_initialized attribute_hidden;
|
|
|
|
extern __typeof (__malloc_check_init) __malloc_check_init attribute_hidden;
|
|
|
|
struct malloc_state;
|
|
typedef struct malloc_state *mstate;
|
|
|
|
# endif /* !_ISOMAC */
|
|
#endif
|