[28/58] Hide internal __malloc_check_init function [BZ #18822]
Commit Message
Hide internal __malloc_check_init function to allow direct access within
libc.so and libc.a without using GOT nor PLT.
* include/malloc.h (__malloc_check_init): Add attribute_hidden.
---
include/malloc.h | 2 ++
1 file changed, 2 insertions(+)
Comments
On 9/1/17, H.J. Lu <hjl.tools@gmail.com> wrote:
> Hide internal __malloc_check_init function to allow direct access within
> libc.so and libc.a without using GOT nor PLT.
>
> * include/malloc.h (__malloc_check_init): Add attribute_hidden.
Tested with build-many-glibcs.py. I am checking it in.
@@ -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;