aboutsummaryrefslogtreecommitdiff
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
parent9e5ee8b839175b7f48d2e64e87d1e3da8fa6458f (diff)
downloadglibc-372fe247b11eb4079f93f11f3f20d14bc6c2c57f.zip
glibc-372fe247b11eb4079f93f11f3f20d14bc6c2c57f.tar.gz
glibc-372fe247b11eb4079f93f11f3f20d14bc6c2c57f.tar.bz2
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.
-rw-r--r--ChangeLog5
-rw-r--r--include/malloc.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c302e26..79489d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
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]
* include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
* misc/ioctl.c (__ioctl): Add libc_hidden_def.
* sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
diff --git a/include/malloc.h b/include/malloc.h
index 70d32c7..d4cd9a5 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;