From: H.J. Lu Date: Sun, 1 Oct 2017 23:00:05 +0000 (-0700) Subject: Hide internal __malloc_check_init function [BZ #18822] X-Git-Tag: glibc-2.27~803 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=372fe247b11eb4079f93f11f3f20d14bc6c2c57f;p=glibc.git 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. --- diff --git a/ChangeLog b/ChangeLog index c302e2617c..79489d7164 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-10-01 H.J. Lu + + [BZ #18822] + * include/malloc.h (__malloc_check_init): Add attribute_hidden. + 2017-10-01 H.J. Lu [BZ #18822] diff --git a/include/malloc.h b/include/malloc.h index 70d32c7c84..d4cd9a5ffc 100644 --- a/include/malloc.h +++ b/include/malloc.h @@ -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;