summary refs log tree commit diff
path: root/include/malloc.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 16:00:05 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 16:00:36 -0700
commit372fe247b11eb4079f93f11f3f20d14bc6c2c57f (patch)
tree50a2b9df169b52e844e7548ecbf2d8474927e156 /include/malloc.h
parent9e5ee8b839175b7f48d2e64e87d1e3da8fa6458f (diff)
downloadglibc-372fe247b11eb4079f93f11f3f20d14bc6c2c57f.tar.gz
glibc-372fe247b11eb4079f93f11f3f20d14bc6c2c57f.tar.xz
glibc-372fe247b11eb4079f93f11f3f20d14bc6c2c57f.zip
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.
Diffstat (limited to 'include/malloc.h')
-rw-r--r--include/malloc.h2
1 files changed, 2 insertions, 0 deletions
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;