]> sourceware.org Git - glibc.git/commitdiff
Hide internal __malloc_check_init function [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 23:00:05 +0000 (16:00 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 23:00:36 +0000 (16:00 -0700)
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.

ChangeLog
include/malloc.h

index c302e2617c319d5e16e40b532cf5056b85636093..79489d71646f4e884a363b8b50fbf6e009614763 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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]
index 70d32c7c84163f62f2cbfdacd3b434c106a188ec..d4cd9a5ffc929a962e272e912d73701ea76b6ff5 100644 (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;
 
This page took 0.077442 seconds and 5 git commands to generate.