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

ChangeLog
libio/iolibio.h

index ccdc1c8614abaa9a29100336a7bb23674f8effd4..8a09d16ba7421c1088ce3b535d01a3aa50382db3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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]
index 754d8b065053fd67a227ad37eca2e9ba55f19164..0185e685d4d462fc592dc2db1c21cf86130a5280 100644 (file)
@@ -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)