about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 16:07:30 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 16:07:47 -0700
commit6036fc38bf50d61ac5f09a435ce4622b586238ed (patch)
treedd419c17dd6c2ae07cfa41222a5c46a509a6f985
parentfe84fed04800bc5becb9fba84db98f58007e77f3 (diff)
downloadglibc-6036fc38bf50d61ac5f09a435ce4622b586238ed.tar.gz
glibc-6036fc38bf50d61ac5f09a435ce4622b586238ed.tar.xz
glibc-6036fc38bf50d61ac5f09a435ce4622b586238ed.zip
Hide internal __fopen_maybe_mmap function [BZ #18822]
Hide internal __fopen_maybe_mmap function to allow direct access within
libc.so and libc.a without using GOT nor PLT.

	[BZ #18822]
	* libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
-rw-r--r--ChangeLog5
-rw-r--r--libio/iolibio.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ccdc1c8614..8a09d16ba7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* include/search.h (__tdestroy): Add libc_hidden_proto.
 	* misc/tsearch.c (__tdestroy): Add libc_hidden_def.
 
diff --git a/libio/iolibio.h b/libio/iolibio.h
index 754d8b0650..0185e685d4 100644
--- a/libio/iolibio.h
+++ b/libio/iolibio.h
@@ -25,7 +25,7 @@ extern _IO_FILE *_IO_new_fopen (const char*, const char*);
 extern _IO_FILE *_IO_fopen64 (const char*, const char*);
 extern _IO_FILE *__fopen_internal (const char*, const char*, int)
 	attribute_hidden;
-extern _IO_FILE *__fopen_maybe_mmap (_IO_FILE *) __THROW;
+extern _IO_FILE *__fopen_maybe_mmap (_IO_FILE *) __THROW attribute_hidden;
 extern int _IO_fprintf (_IO_FILE*, const char*, ...);
 extern int _IO_fputs (const char*, _IO_FILE*);
 libc_hidden_proto (_IO_fputs)