This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 28/58] 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.

	* include/malloc.h (__malloc_check_init): Add attribute_hidden.
---
 include/malloc.h | 2 ++
 1 file changed, 2 insertions(+)

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;
 
-- 
2.13.5


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]