aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-01 14:33:26 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-01 14:34:40 -0700
commitef9b6f73f45a46d079018f63e2d9184eaa0db1d5 (patch)
tree24b219357cedb237a2c55ac90f42f47ada16b154 /libio
parent8da92e722ca66e35003abf64a77ae529f9989e6a (diff)
downloadglibc-ef9b6f73f45a46d079018f63e2d9184eaa0db1d5.tar
glibc-ef9b6f73f45a46d079018f63e2d9184eaa0db1d5.tar.gz
glibc-ef9b6f73f45a46d079018f63e2d9184eaa0db1d5.tar.bz2
glibc-ef9b6f73f45a46d079018f63e2d9184eaa0db1d5.zip
Mark 3 *_internal functions with attribute_hidden [BZ #18822]
Mark __ptsname_internal, __mktime_internal and __fopen_internal with attribute_hidden to allow direct access to them within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/stdlib.h (__ptsname_internal): Add attribute_hidden. * include/time.h (__mktime_internal): Likewise. * libio/iolibio.h (__fopen_internal): Likewise.
Diffstat (limited to 'libio')
-rw-r--r--libio/iolibio.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libio/iolibio.h b/libio/iolibio.h
index f215fcef01..754d8b0650 100644
--- a/libio/iolibio.h
+++ b/libio/iolibio.h
@@ -23,7 +23,8 @@ extern _IO_FILE *_IO_fopen (const char*, const char*);
extern _IO_FILE *_IO_old_fopen (const char*, const char*);
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);
+extern _IO_FILE *__fopen_internal (const char*, const char*, int)
+ attribute_hidden;
extern _IO_FILE *__fopen_maybe_mmap (_IO_FILE *) __THROW;
extern int _IO_fprintf (_IO_FILE*, const char*, ...);
extern int _IO_fputs (const char*, _IO_FILE*);