Hide internal __malloc_check_init function [BZ #18822]

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.
This commit is contained in:
H.J. Lu 2017-10-01 16:00:05 -07:00
parent 9e5ee8b839
commit 372fe247b1
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]
* include/malloc.h (__malloc_check_init): Add attribute_hidden.
2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
[BZ #18822]

View File

@ -9,6 +9,8 @@
/* 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;