This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch hjl/pr19122 created. glibc-2.22-399-g87aa9e1


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, hjl/pr19122 has been created
        at  87aa9e1b9e90b9a2100e6910e82e2039b10a67eb (commit)

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=87aa9e1b9e90b9a2100e6910e82e2039b10a67eb

commit 87aa9e1b9e90b9a2100e6910e82e2039b10a67eb
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 15:21:55 2015 -0700

    Mark internel unistd functions hidden
    
    Since internal unistd functions are only used internally in ld.so and
    libc.so, they can be made hidden.
    
    	[BZ #19122]
    	* include/unistd.h (__libc_check_standard_fds): Add
    	attribute_hidden.
    	IS_IN (rtld)] (__access): Likewise.
    	IS_IN (rtld)] (__brk): Likewise.
    	IS_IN (rtld)] (__close): Likewise.
    	IS_IN (rtld)] (__getcwd): Likewise.
    	IS_IN (rtld)] (__getpid): Likewise.
    	IS_IN (rtld)] (__libc_read): Likewise.
    	IS_IN (rtld)] (__libc_write): Likewise.
    	IS_IN (rtld)] (__lseek): Likewise.
    	IS_IN (rtld)] (__profil): Likewise.
    	IS_IN (rtld)] (__read): Likewise.
    	IS_IN (rtld)] (__sbrk): Likewise.

diff --git a/include/unistd.h b/include/unistd.h
index fbba393..09a4c6e 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -158,7 +158,7 @@ rtld_hidden_proto (__libc_enable_secure)
 
 
 /* Various internal function.  */
-extern void __libc_check_standard_fds (void);
+extern void __libc_check_standard_fds (void) attribute_hidden;
 
 
 /* Internal name for fork function.  */
@@ -177,6 +177,20 @@ extern int __have_dup3 attribute_hidden;
 extern int __getlogin_r_loginuid (char *name, size_t namesize)
      attribute_hidden;
 
+#  if IS_IN (rtld)
+extern __typeof (__access) __access attribute_hidden;
+extern __typeof (__brk) __brk attribute_hidden;
+extern __typeof (__close) __close attribute_hidden;
+extern __typeof (__getcwd) __getcwd attribute_hidden;
+extern __typeof (__getpid) __getpid attribute_hidden;
+extern __typeof (__libc_read) __libc_read attribute_hidden;
+extern __typeof (__libc_write) __libc_write attribute_hidden;
+extern __typeof (__lseek) __lseek attribute_hidden;
+extern __typeof (__profil) __profil attribute_hidden;
+extern __typeof (__read) __read attribute_hidden;
+extern __typeof (__sbrk) __sbrk attribute_hidden;
+#  endif
+
 __END_DECLS
 # endif
 

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=8a83cb9c2de0641bf4d8ddca40ebea3c9730205d

commit 8a83cb9c2de0641bf4d8ddca40ebea3c9730205d
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 15:20:09 2015 -0700

    Mark ld.so internel __uname hidden
    
    Since ld.so internel __uname is only used internally in ld.so, it can
    be made hidden.
    
    	[BZ #19122]
    	* include/sys/utsname.h [IS_IN (rtld)] (__uname): Add
    	attribute_hidden.

diff --git a/include/sys/utsname.h b/include/sys/utsname.h
index 66a5289..14f4247 100644
--- a/include/sys/utsname.h
+++ b/include/sys/utsname.h
@@ -6,5 +6,9 @@ extern int __uname (struct utsname *__name);
 
 libc_hidden_proto (uname)
 libc_hidden_proto (__uname)
+
+# if IS_IN (rtld)
+extern __typeof (__uname) __uname attribute_hidden;
+# endif
 #endif
 #endif

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=58e40ce9d4397fdb6933d0fc3b1e89310e84346a

commit 58e40ce9d4397fdb6933d0fc3b1e89310e84346a
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 15:15:44 2015 -0700

    Mark ld.so internel __fxstatat64 hidden
    
    Since ld.so internel __fxstatat64 is only used internally in ld.so, it
    can be made hidden.
    
    	[BZ #19122]
    	* include/sys/stat.h [IS_IN (rtld)] (__fxstatat64): Add
    	attribute_hidden.

diff --git a/include/sys/stat.h b/include/sys/stat.h
index 873562a..4f31c00 100644
--- a/include/sys/stat.h
+++ b/include/sys/stat.h
@@ -35,6 +35,9 @@ libc_hidden_proto (__xmknodat)
 libc_hidden_proto (__fxstatat)
 libc_hidden_proto (__fxstatat64)
 
+# if IS_IN (rtld)
+extern __typeof (__fxstatat64) __fxstatat64 attribute_hidden;
+# endif
 
 /* The `stat', `fstat', `lstat' functions have to be handled special since
    even while not compiling the library with optimization calls to these

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=53548877059bff1ce9d66d984ac6484c97cb0186

commit 53548877059bff1ce9d66d984ac6484c97cb0186
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 15:14:15 2015 -0700

    Mark ld.so internel mmap functions hidden
    
    Since ld.so internel mmap functions are only used internally in ld.so,
    they can be made hidden.
    
    	 [BZ #19122]
    	 * include/sys/mman.h [IS_IN (rtld)] (__mmap): Add
    	 attribute_hidden.
    	 [IS_IN (rtld)] (__mprotect): Likewise.
    	 [IS_IN (rtld)] (__munmap): Likewise.

diff --git a/include/sys/mman.h b/include/sys/mman.h
index fd125ec..fdfedbb 100644
--- a/include/sys/mman.h
+++ b/include/sys/mman.h
@@ -16,6 +16,12 @@ libc_hidden_proto (__madvise)
 /* This one is Linux specific.  */
 extern void *__mremap (void *__addr, size_t __old_len,
 		       size_t __new_len, int __flags, ...);
+
+# if IS_IN (rtld)
+extern __typeof (__mmap) __mmap attribute_hidden;
+extern __typeof (__mprotect) __mprotect attribute_hidden;
+extern __typeof (__munmap) __munmap attribute_hidden;
+# endif
 #endif
 
 #endif

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=4e40b4709c0095007e0957c93459291f662f2bea

commit 4e40b4709c0095007e0957c93459291f662f2bea
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 15:11:03 2015 -0700

    Mark ld.so internel string functions hidden
    
    Since ld.so internel string functions are only used internally in
    ld.so, they can be made hidden.
    
    	[BZ #19122]
    	* include/string.h [IS_IN (rtld)] (__stpcpy): Add
    	attribute_hidden.
    	[IS_IN (rtld)] (__strdup): Likewise.
    	[IS_IN (rtld)] (__strerror_r): Likewise.
    	[IS_IN (rtld)] (__strsep_g): Likewise.
    	[IS_IN (rtld)] (memchr): Likewise.
    	[IS_IN (rtld)] (memcmp): Likewise.
    	[IS_IN (rtld)] (memcpy): Likewise.
    	[IS_IN (rtld)] (memmove): Likewise.
    	[IS_IN (rtld)] (memset): Likewise.
    	[IS_IN (rtld)] (rawmemchr): Likewise.
    	[IS_IN (rtld)] (stpcpy): Likewise.
    	[IS_IN (rtld)] (strchr): Likewise.
    	[IS_IN (rtld)] (strcmp): Likewise.
    	[IS_IN (rtld)] (strlen): Likewise.
    	[IS_IN (rtld)] (strnlen): Likewise.
    	[IS_IN (rtld)] (strsep): Likewise.

diff --git a/include/string.h b/include/string.h
index c57671e..a684fd9 100644
--- a/include/string.h
+++ b/include/string.h
@@ -118,6 +118,26 @@ libc_hidden_builtin_proto (strspn)
 libc_hidden_builtin_proto (strstr)
 libc_hidden_builtin_proto (ffs)
 
+#if IS_IN (rtld)
+extern __typeof (__stpcpy) __stpcpy attribute_hidden;
+extern __typeof (__strdup) __strdup attribute_hidden;
+extern __typeof (__strerror_r) __strerror_r attribute_hidden;
+extern __typeof (__strsep_g) __strsep_g attribute_hidden;
+
+extern __typeof (memchr) memchr attribute_hidden;
+extern __typeof (memcmp) memcmp attribute_hidden;
+extern __typeof (memcpy) memcpy attribute_hidden;
+extern __typeof (memmove) memmove attribute_hidden;
+extern __typeof (memset) memset attribute_hidden;
+extern __typeof (rawmemchr) rawmemchr attribute_hidden;
+extern __typeof (stpcpy) stpcpy attribute_hidden;
+extern __typeof (strchr) strchr attribute_hidden;
+extern __typeof (strcmp) strcmp attribute_hidden;
+extern __typeof (strlen) strlen attribute_hidden;
+extern __typeof (strnlen) strnlen attribute_hidden;
+extern __typeof (strsep) strsep attribute_hidden;
+#endif
+
 #if (!IS_IN (libc) || !defined SHARED) \
   && !defined NO_MEMPCPY_STPCPY_REDIRECT
 /* Redirect calls to __builtin_mempcpy and __builtin_stpcpy to call

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=e0a7f3de6bd26d5dc879a330fad5a976b66ca240

commit e0a7f3de6bd26d5dc879a330fad5a976b66ca240
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 15:08:22 2015 -0700

    Mark ld.so internel stdlib functions hidden
    
    Since ld.so internel stdlib functions are only used internally in
    ld.so, they can be made hidden.
    
    	[BZ #19122]
    	* include/stdlib.h [IS_IN (rtld)] (unsetenv): Add
    	attribute_hidden.
    	[IS_IN (rtld)] (__strtoul_internal): Likewise.

diff --git a/include/stdlib.h b/include/stdlib.h
index 992b877..dcb83a5 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -242,6 +242,11 @@ struct abort_msg_s
 extern struct abort_msg_s *__abort_msg;
 libc_hidden_proto (__abort_msg)
 
+# if IS_IN (rtld)
+extern __typeof (unsetenv) unsetenv attribute_hidden;
+extern __typeof (__strtoul_internal) __strtoul_internal attribute_hidden;
+# endif
+
 __END_DECLS
 
 #endif

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=24dc312eb239a9fc17cc3523b72ded8135732931

commit 24dc312eb239a9fc17cc3523b72ded8135732931
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 15:05:42 2015 -0700

    Mark ld.so internel sigaction functions hidden
    
    Since ld.so internel sigaction functions are only used internally in
    ld.so, they can be made hidden.
    
    	[BZ #19122]
    	* include/signal.h [IS_IN (rtld)] (__sigaction): Add
    	attribute_hidden.
    	[IS_IN (rtld)] (__libc_sigaction): Likewise.

diff --git a/include/signal.h b/include/signal.h
index b69de03..276a99d 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -61,6 +61,11 @@ extern int __xpg_sigpause (int sig);
 
 /* Allocate real-time signal with highest/lowest available priority.  */
 extern int __libc_allocate_rtsig (int __high);
+
+#  if IS_IN (rtld)
+extern __typeof (__sigaction) __sigaction attribute_hidden;
+extern __typeof (__libc_sigaction) __libc_sigaction attribute_hidden;
+#  endif
 # endif
 #endif
 #endif

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=b71f5c6dae8818c4b7683873fb4abd784652cb4c

commit b71f5c6dae8818c4b7683873fb4abd784652cb4c
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 15:04:20 2015 -0700

    Mark internal setjmp functions hidden
    
    Since internal dirent functions are only used internally in ld.so and
    libc.so, they can be made hidden.
    
    	[BZ #19122]
    	* include/setjmp.h (__longjmp): Add attribute_hidden.
    	[IS_IN (rtld)] (__sigsetjmp): Likewise.

diff --git a/include/setjmp.h b/include/setjmp.h
index 622bb31..90f4697 100644
--- a/include/setjmp.h
+++ b/include/setjmp.h
@@ -6,7 +6,7 @@
 
 /* Internal machine-dependent function to restore context sans signal mask.  */
 extern void __longjmp (__jmp_buf __env, int __val)
-     __attribute__ ((__noreturn__));
+     __attribute__ ((__noreturn__)) attribute_hidden;
 
 /* Internal function to possibly save the current mask of blocked signals
    in ENV, and always set the flag saying whether or not it was saved.
@@ -24,6 +24,10 @@ libc_hidden_proto (__libc_longjmp)
 
 libc_hidden_proto (_setjmp)
 libc_hidden_proto (__sigsetjmp)
+
+# if IS_IN (rtld)
+extern __typeof (__sigsetjmp) __sigsetjmp attribute_hidden;
+# endif
 #endif
 
 #endif

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=3651a9fe17ce6b84a1a8ebaae5419c8591e07095

commit 3651a9fe17ce6b84a1a8ebaae5419c8591e07095
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 15:02:05 2015 -0700

    Mark ld.so internel __profile_frequency hidden
    
    Since ld.so internel __profile_frequency is only used internally in
    ld.so, it can be made hidden.
    
    	[BZ #19122]
    	* include/libc-internal.h [IS_IN (rtld)] (__profile_frequency):
    	Add attribute_hidden.

diff --git a/include/libc-internal.h b/include/libc-internal.h
index b37388e..65a2a56 100644
--- a/include/libc-internal.h
+++ b/include/libc-internal.h
@@ -34,6 +34,10 @@ extern void __libc_thread_freeres (void);
 /* Define and initialize `__progname' et. al.  */
 extern void __init_misc (int, char **, char **);
 
+# if IS_IN (rtld)
+extern __typeof (__profile_frequency) __profile_frequency attribute_hidden;
+# endif
+
 /* 1 if 'type' is a pointer type, 0 otherwise.  */
 # define __pointer_type(type) (__builtin_classify_type ((type) 0) == 5)
 

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=199788e305517bb2f0a766ddce2f9ec5af160740

commit 199788e305517bb2f0a766ddce2f9ec5af160740
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 14:59:35 2015 -0700

    Mark internal fcntl functions hidden
    
    Since internal fcntl functions are only used internally in ld.so and
    libc.so, they can be made hidden.
    
    	[BZ #19122]
    	* include/fcntl.h (__libc_fcntl): Add attribute_hidden.
    	[IS_IN (rtld)] (__open): Likewise.
    	[IS_IN (rtld)] (__fcntl): Likewise.

diff --git a/include/fcntl.h b/include/fcntl.h
index de23728..4168ee4 100644
--- a/include/fcntl.h
+++ b/include/fcntl.h
@@ -8,7 +8,7 @@ libc_hidden_proto (__open64)
 extern int __libc_open64 (const char *file, int oflag, ...);
 extern int __libc_open (const char *file, int oflag, ...);
 libc_hidden_proto (__libc_open)
-extern int __libc_fcntl (int fd, int cmd, ...);
+extern int __libc_fcntl (int fd, int cmd, ...) attribute_hidden;
 #ifndef NO_CANCELLATION
 extern int __fcntl_nocancel (int fd, int cmd, ...) attribute_hidden;
 libc_hidden_proto (__libc_fcntl)
@@ -30,6 +30,11 @@ extern int __openat_2 (int __fd, const char *__path, int __oflag);
 extern int __openat64_2 (int __fd, const char *__path, int __oflag);
 
 
+#if IS_IN (rtld)
+extern __typeof (__open) __open attribute_hidden;
+extern __typeof (__fcntl) __fcntl attribute_hidden;
+#endif
+
 /* Flag determining whether the *at system calls are available.  */
 extern int __have_atfcts attribute_hidden;
 

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=b48b649403da64f54db90fcaf2552d7010294d72

commit b48b649403da64f54db90fcaf2552d7010294d72
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 14:56:46 2015 -0700

    Mark internal dirent functions hidden
    
    Since internal dirent functions are only used internally in ld.so and
    libc.so, they can be made hidden.
    
    	[BZ #19122]
    	* include/dirent.h (__opendirat): Add attribute_hidden.
    	(__getdents): Likewise.
    	(__getdents64): Likewise.
    	(__alloc_dir): Likewise.
    	[IS_IN (rtld)] (__closedir): Likewise.
    	[IS_IN (rtld)] (__fdopendir): Likewise.
    	[IS_IN (rtld)] (__readdir): Likewise.
    	[IS_IN (rtld)] (__readdir64): Likewise.
    	[IS_IN (rtld)] (__rewinddir): Likewise.

diff --git a/include/dirent.h b/include/dirent.h
index 258f2d0..c792e53 100644
--- a/include/dirent.h
+++ b/include/dirent.h
@@ -16,7 +16,8 @@ struct scandir_cancel_struct
 
 /* Now define the internal interfaces.  */
 extern DIR *__opendir (const char *__name);
-extern DIR *__opendirat (int dfd, const char *__name) internal_function;
+extern DIR *__opendirat (int dfd, const char *__name)
+     internal_function attribute_hidden;
 extern DIR *__fdopendir (int __fd);
 extern int __closedir (DIR *__dirp);
 extern struct dirent *__readdir (DIR *__dirp);
@@ -35,9 +36,9 @@ extern __ssize_t __getdirentries (int __fd, char *__restrict __buf,
 				__off_t *__restrict __basep)
      __THROW __nonnull ((2, 4));
 extern __ssize_t __getdents (int __fd, char *__buf, size_t __nbytes)
-     internal_function;
+     internal_function attribute_hidden;
 extern __ssize_t __getdents64 (int __fd, char *__buf, size_t __nbytes)
-     internal_function;
+     internal_function attribute_hidden;
 extern int __alphasort64 (const struct dirent64 **a, const struct dirent64 **b)
      __attribute_pure__;
 extern int __versionsort64 (const struct dirent64 **a,
@@ -45,7 +46,7 @@ extern int __versionsort64 (const struct dirent64 **a,
      __attribute_pure__;
 extern DIR *__alloc_dir (int fd, bool close_fd, int flags,
 			 const struct stat64 *statp)
-     internal_function;
+     internal_function attribute_hidden;
 extern __typeof (rewinddir) __rewinddir;
 
 extern void __scandir_cancel_handler (void *arg) attribute_hidden;
@@ -74,6 +75,14 @@ libc_hidden_proto (__rewinddir)
 extern __typeof (scandirat) __scandirat;
 libc_hidden_proto (__scandirat)
 libc_hidden_proto (scandirat64)
+
+#  if IS_IN (rtld)
+extern __typeof (__closedir) __closedir attribute_hidden;
+extern __typeof (__fdopendir) __fdopendir attribute_hidden;
+extern __typeof (__readdir) __readdir attribute_hidden;
+extern __typeof (__readdir64) __readdir64 attribute_hidden;
+extern __typeof (__rewinddir) __rewinddir attribute_hidden;
+#  endif
 # endif
 
 #endif

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=84339913a1ff7d54d8de57b1e094af5068905d0d

commit 84339913a1ff7d54d8de57b1e094af5068905d0d
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 14:54:11 2015 -0700

    Mark _dl_catch_error hidden
    
    Since _dl_catch_error is only used internally in ld.so, it should be
    declared in sysdeps/generic/ldsodefs.h, not include/dlfcn.h and it can
    be made hidden.
    
    	[BZ #19122]
    	* include/dlfcn.h (_dl_catch_error): Moved to ...
    	* sysdeps/generic/ldsodefs.h (_dl_catch_error): Add
    	attribute_hidden.

diff --git a/include/dlfcn.h b/include/dlfcn.h
index 0ce0af5..2524292 100644
--- a/include/dlfcn.h
+++ b/include/dlfcn.h
@@ -71,19 +71,6 @@ extern void *_dl_vsym (void *handle, const char *name, const char *version,
 		       void *who)
     internal_function;
 
-/* Call OPERATE, catching errors from `dl_signal_error'.  If there is no
-   error, *ERRSTRING is set to null.  If there is an error, *ERRSTRING is
-   set to a string constructed from the strings passed to _dl_signal_error,
-   and the error code passed is the return value and *OBJNAME is set to
-   the object name which experienced the problems.  ERRSTRING if nonzero
-   points to a malloc'ed string which the caller has to free after use.
-   ARGS is passed as argument to OPERATE.  MALLOCEDP is set to true only
-   if the returned string is allocated using the libc's malloc.  */
-extern int _dl_catch_error (const char **objname, const char **errstring,
-			    bool *mallocedp, void (*operate) (void *),
-			    void *args)
-     internal_function;
-
 /* Helper function for <dlfcn.h> functions.  Runs the OPERATE function via
    _dl_catch_error.  Returns zero for success, nonzero for failure; and
    arranges for `dlerror' to return the error details.
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index f9f3e3c..3459ec8 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -741,6 +741,18 @@ extern void _dl_receive_error (receiver_fct fct, void (*operate) (void *),
 			       void *args)
      internal_function attribute_hidden;
 
+/* Call OPERATE, catching errors from `dl_signal_error'.  If there is no
+   error, *ERRSTRING is set to null.  If there is an error, *ERRSTRING is
+   set to a string constructed from the strings passed to _dl_signal_error,
+   and the error code passed is the return value and *OBJNAME is set to
+   the object name which experienced the problems.  ERRSTRING if nonzero
+   points to a malloc'ed string which the caller has to free after use.
+   ARGS is passed as argument to OPERATE.  MALLOCEDP is set to true only
+   if the returned string is allocated using the libc's malloc.  */
+extern int _dl_catch_error (const char **objname, const char **errstring,
+			    bool *mallocedp, void (*operate) (void *),
+			    void *args)
+     internal_function attribute_hidden;
 
 /* Open the shared object NAME and map in its segments.
    LOADER's DT_RPATH is used in searching for NAME.

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=739b50beb25662f008eabb15a36ed6a9309291f7

commit 739b50beb25662f008eabb15a36ed6a9309291f7
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 14:39:54 2015 -0700

    Mark internal _itoa functions hidden
    
    Since internal _itoa functions are only used internally in ld.so and
    libc.so, they can be made hidden.
    
    	[BZ #19122]
    	* sysdeps/generic/_itoa.h (_itoa): Add attribute_hidden.
    	(_itoa_word): Likewise.

diff --git a/sysdeps/generic/_itoa.h b/sysdeps/generic/_itoa.h
index 632e24c..bd9d3bc 100644
--- a/sysdeps/generic/_itoa.h
+++ b/sysdeps/generic/_itoa.h
@@ -42,7 +42,7 @@
    Use upper case letters iff UPPER_CASE is nonzero.  */
 
 extern char *_itoa (unsigned long long int value, char *buflim,
-		    unsigned int base, int upper_case);
+		    unsigned int base, int upper_case) attribute_hidden;
 
 extern const char _itoa_upper_digits[];
 extern const char _itoa_lower_digits[];
@@ -53,7 +53,8 @@ hidden_proto (_itoa_lower_digits)
 
 #if IS_IN (libc)
 extern char *_itoa_word (_ITOA_WORD_TYPE value, char *buflim,
-			 unsigned int base, int upper_case);
+			 unsigned int base,
+			 int upper_case) attribute_hidden;
 #else
 static inline char * __attribute__ ((unused, always_inline))
 _itoa_word (_ITOA_WORD_TYPE value, char *buflim,

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=ccf6e0fca30b3159fcb8baf0a28451702e07a54d

commit ccf6e0fca30b3159fcb8baf0a28451702e07a54d
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 14:33:44 2015 -0700

    Mark internal _dl_XXX functions hidden
    
    Since internal _dl_XXX functions are only used internally in ld.so,
    they can be made hidden.
    
    	[BZ #19122]
    	* elf/dl-runtime.c (_dl_fixup): Add attribute_hidden.
    	* elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
    	* sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
    	* sysdeps/generic/ldsodefs.h (_dl_name_match_p): Likewise.
    	(_dl_higher_prime_number): Likewise.
    	(_dl_debug_printf_c): Likewise.
    	(_dl_signal_cerror): Likewise.
    	(_dl_receive_error): Likewise.
    	(_dl_reloc_bad_type): Likewise.
    	(_dl_resolve_conflicts): Likewise.
    	(_dl_check_all_versions): Likewise.
    	(_dl_check_map_versions): Likewise.
    	(_dl_sort_fini): Likewise.
    	(_dl_debug_initialize): Likewise.
    	(_dl_init_paths): Likewise.
    	(_dl_show_auxv): Likewise.
    	(_dl_next_ld_env_entry): Likewise.
    	(_dl_important_hwcaps): Likewise.
    	(_dl_load_cache_lookup): Likewise.
    	(_dl_update_slotinfo): Likewise.
    	(_dl_show_scope): Likewise.

diff --git a/elf/dl-runtime.c b/elf/dl-runtime.c
index bd9a1b1..3de6f55 100644
--- a/elf/dl-runtime.c
+++ b/elf/dl-runtime.c
@@ -57,7 +57,7 @@
    function.  */
 
 DL_FIXUP_VALUE_TYPE
-__attribute ((noinline)) ARCH_FIXUP_ATTRIBUTE
+attribute_hidden __attribute ((noinline)) ARCH_FIXUP_ATTRIBUTE
 _dl_fixup (
 # ifdef ELF_MACHINE_RUNTIME_FIXUP_ARGS
 	   ELF_MACHINE_RUNTIME_FIXUP_ARGS,
diff --git a/elf/dynamic-link.h b/elf/dynamic-link.h
index d7cff48..0118565 100644
--- a/elf/dynamic-link.h
+++ b/elf/dynamic-link.h
@@ -42,7 +42,8 @@
      && (__builtin_expect ((sym_map)->l_tls_offset != NO_TLS_OFFSET, 1)	\
 	 || _dl_try_allocate_static_tls (sym_map) == 0))
 
-int internal_function _dl_try_allocate_static_tls (struct link_map *map);
+int internal_function attribute_hidden
+  _dl_try_allocate_static_tls (struct link_map *map);
 
 #include <elf.h>
 
diff --git a/sysdeps/generic/dl-cache.h b/sysdeps/generic/dl-cache.h
index 4b49869..70d4aeb 100644
--- a/sysdeps/generic/dl-cache.h
+++ b/sysdeps/generic/dl-cache.h
@@ -101,4 +101,4 @@ struct cache_file_new
  & (~(__alignof__ (struct cache_file_new) - 1)))
 
 extern int _dl_cache_libcmp (const char *p1, const char *p2)
-     internal_function;
+     internal_function attribute_hidden;
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 7f7ff72..f9f3e3c 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -235,11 +235,11 @@ struct audit_ifaces
 
 /* Test whether given NAME matches any of the names of the given object.  */
 extern int _dl_name_match_p (const char *__name, const struct link_map *__map)
-     internal_function;
+     internal_function attribute_hidden;
 
 /* Compute next higher prime number.  */
 extern unsigned long int _dl_higher_prime_number (unsigned long int n)
-     internal_function;
+     internal_function attribute_hidden;
 
 /* Function used as argument for `_dl_receive_error' function.  The
    arguments are the error code, error string, and the objname the
@@ -688,7 +688,7 @@ extern void _dl_debug_printf (const char *fmt, ...)
    interpreted as for a `printf' call.  All the lines buf the first
    start with a tag showing the PID.  */
 extern void _dl_debug_printf_c (const char *fmt, ...)
-     __attribute__ ((__format__ (__printf__, 1, 2)));
+     __attribute__ ((__format__ (__printf__, 1, 2))) attribute_hidden;
 
 
 /* Write a message on the specified descriptor FD.  The parameters are
@@ -731,7 +731,7 @@ extern void _dl_signal_error (int errcode, const char *object,
    _dl_receive_error.  */
 extern void _dl_signal_cerror (int errcode, const char *object,
 			       const char *occation, const char *errstring)
-     internal_function;
+     internal_function attribute_hidden;
 
 /* Call OPERATE, receiving errors from `dl_signal_cerror'.  Unlike
    `_dl_catch_error' the operation is resumed after the OPERATE
@@ -739,7 +739,7 @@ extern void _dl_signal_cerror (int errcode, const char *object,
    ARGS is passed as argument to OPERATE.  */
 extern void _dl_receive_error (receiver_fct fct, void (*operate) (void *),
 			       void *args)
-     internal_function;
+     internal_function attribute_hidden;
 
 
 /* Open the shared object NAME and map in its segments.
@@ -838,24 +838,25 @@ extern void _dl_protect_relro (struct link_map *map)
    PLT is nonzero if this was a PLT reloc; it just affects the message.  */
 extern void _dl_reloc_bad_type (struct link_map *map,
 				unsigned int type, int plt)
-     internal_function __attribute__ ((__noreturn__));
+     internal_function attribute_hidden __attribute__ ((__noreturn__));
 
 /* Resolve conflicts if prelinking.  */
 extern void _dl_resolve_conflicts (struct link_map *l,
 				   ElfW(Rela) *conflict,
-				   ElfW(Rela) *conflictend);
+				   ElfW(Rela) *conflictend)
+     attribute_hidden;
 
 /* Check the version dependencies of all objects available through
    MAP.  If VERBOSE print some more diagnostics.  */
 extern int _dl_check_all_versions (struct link_map *map, int verbose,
 				   int trace_mode)
-     internal_function;
+     internal_function attribute_hidden;
 
 /* Check the version dependencies for MAP.  If VERBOSE print some more
    diagnostics.  */
 extern int _dl_check_map_versions (struct link_map *map, int verbose,
 				   int trace_mode)
-     internal_function;
+     internal_function attribute_hidden;
 
 /* Initialize the object in SCOPE by calling the constructors with
    ARGC, ARGV, and ENV as the parameters.  */
@@ -869,7 +870,7 @@ extern void _dl_fini (void) internal_function;
 /* Sort array MAPS according to dependencies of the contained objects.  */
 extern void _dl_sort_fini (struct link_map **maps, size_t nmaps, char *used,
 			   Lmid_t ns)
-     internal_function;
+     internal_function attribute_hidden;
 
 /* The dynamic linker calls this function before and having changing
    any shared object mappings.  The `r_state' member of `struct r_debug'
@@ -882,10 +883,11 @@ rtld_hidden_proto (_dl_debug_state)
    argument is the run-time load address of the dynamic linker, to be put
    in the `r_ldbase' member.  Returns the address of the structure.  */
 extern struct r_debug *_dl_debug_initialize (ElfW(Addr) ldbase, Lmid_t ns)
-     internal_function;
+     internal_function attribute_hidden;
 
 /* Initialize the basic data structure for the search paths.  */
-extern void _dl_init_paths (const char *library_path) internal_function;
+extern void _dl_init_paths (const char *library_path)
+     internal_function attribute_hidden;
 
 /* Gather the information needed to install the profiling tables and start
    the timers.  */
@@ -901,23 +903,25 @@ rtld_hidden_proto (_dl_mcount)
 extern void _dl_mcount_wrapper (void *selfpc);
 
 /* Show the members of the auxiliary array passed up from the kernel.  */
-extern void _dl_show_auxv (void) internal_function;
+extern void _dl_show_auxv (void)
+     internal_function attribute_hidden;
 
 /* Return all environment variables starting with `LD_', one after the
    other.  */
-extern char *_dl_next_ld_env_entry (char ***position) internal_function;
+extern char *_dl_next_ld_env_entry (char ***position)
+     internal_function attribute_hidden;
 
 /* Return an array with the names of the important hardware capabilities.  */
 extern const struct r_strlenpair *_dl_important_hwcaps (const char *platform,
 							size_t paltform_len,
 							size_t *sz,
 							size_t *max_capstrlen)
-     internal_function;
+     internal_function attribute_hidden;
 
 /* Look up NAME in ld.so.cache and return the file name stored there,
    or null if none is found.  Caller must free returned string.  */
 extern char *_dl_load_cache_lookup (const char *name)
-     internal_function;
+     internal_function attribute_hidden;
 
 /* If the system does not support MAP_COPY we cannot leave the file open
    all the time since this would create problems when the file is replaced.
@@ -1017,7 +1021,8 @@ extern void _dl_add_to_slotinfo (struct link_map  *l) attribute_hidden;
 
 /* Update slot information data for at least the generation of the
    module with the given index.  */
-extern struct link_map *_dl_update_slotinfo (unsigned long int req_modid);
+extern struct link_map *_dl_update_slotinfo (unsigned long int req_modid)
+     attribute_hidden;
 
 /* Look up the module's TLS block as for __tls_get_addr,
    but never touch anything.  Return null if it's not allocated yet.  */
@@ -1027,7 +1032,8 @@ extern int _dl_addr_inside_object (struct link_map *l, const ElfW(Addr) addr)
      internal_function attribute_hidden;
 
 /* Show show of an object.  */
-extern void _dl_show_scope (struct link_map *new, int from);
+extern void _dl_show_scope (struct link_map *new, int from)
+     attribute_hidden;
 
 extern struct link_map *_dl_find_dso_for_object (const ElfW(Addr) addr)
      internal_function;

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=5a36366f08f8e963d6a2024094240ffb793fce07

commit 5a36366f08f8e963d6a2024094240ffb793fce07
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 14:22:21 2015 -0700

    Mark _wordcopy_XXX functions hidden
    
    Since _wordcopy_XXX functions are only used internally in ld.so and
    libc.so, they can be made hidden.
    
    	[BZ #19122]
    	* sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
    	attribute_hidden.
    	(_wordcopy_fwd_dest_aligned): Likewise.
    	(_wordcopy_bwd_aligned): Likewise.
    	(_wordcopy_bwd_dest_aligned): Likewise.

diff --git a/sysdeps/generic/memcopy.h b/sysdeps/generic/memcopy.h
index e6bc6e4..af4f064 100644
--- a/sysdeps/generic/memcopy.h
+++ b/sysdeps/generic/memcopy.h
@@ -111,8 +111,10 @@ typedef unsigned char byte;
    the assumption that DST_BP is aligned on an OPSIZ multiple.  If
    not all bytes could be easily copied, store remaining number of bytes
    in NBYTES_LEFT, otherwise store 0.  */
-extern void _wordcopy_fwd_aligned (long int, long int, size_t) __THROW;
-extern void _wordcopy_fwd_dest_aligned (long int, long int, size_t) __THROW;
+extern void _wordcopy_fwd_aligned (long int, long int, size_t)
+  attribute_hidden __THROW;
+extern void _wordcopy_fwd_dest_aligned (long int, long int, size_t)
+  attribute_hidden __THROW;
 #define WORD_COPY_FWD(dst_bp, src_bp, nbytes_left, nbytes)		      \
   do									      \
     {									      \
@@ -131,8 +133,10 @@ extern void _wordcopy_fwd_dest_aligned (long int, long int, size_t) __THROW;
    DST_END_PTR is aligned on an OPSIZ multiple.  If not all bytes could be
    easily copied, store remaining number of bytes in NBYTES_REMAINING,
    otherwise store 0.  */
-extern void _wordcopy_bwd_aligned (long int, long int, size_t) __THROW;
-extern void _wordcopy_bwd_dest_aligned (long int, long int, size_t) __THROW;
+extern void _wordcopy_bwd_aligned (long int, long int, size_t)
+  attribute_hidden __THROW;
+extern void _wordcopy_bwd_dest_aligned (long int, long int, size_t)
+  attribute_hidden __THROW;
 #define WORD_COPY_BWD(dst_ep, src_ep, nbytes_left, nbytes)		      \
   do									      \
     {									      \

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=8a52db21a879fbd922a6f514b0aa63069e9a6d79

commit 8a52db21a879fbd922a6f514b0aa63069e9a6d79
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 14:21:21 2015 -0700

    Mark x86_64 _dl_make_tlsdesc_dynamic hidden
    
    Since x86_64 _dl_make_tlsdesc_dynamic is only used internally in ld.so,
    it can be made hidden.
    
    	[BZ #19122]
    	* sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Add
    	attribute_hidden.

diff --git a/sysdeps/x86_64/dl-tlsdesc.h b/sysdeps/x86_64/dl-tlsdesc.h
index cf32328..542641d 100644
--- a/sysdeps/x86_64/dl-tlsdesc.h
+++ b/sysdeps/x86_64/dl-tlsdesc.h
@@ -60,8 +60,9 @@ extern ptrdiff_t attribute_hidden
   _dl_tlsdesc_resolve_hold(struct tlsdesc *on_rax);
 
 # ifdef SHARED
-extern void *internal_function _dl_make_tlsdesc_dynamic (struct link_map *map,
-							 size_t ti_offset);
+extern void *_dl_make_tlsdesc_dynamic (struct link_map *map,
+				       size_t ti_offset)
+  internal_function attribute_hidden;
 
 extern ptrdiff_t attribute_hidden _dl_tlsdesc_dynamic(struct tlsdesc *);
 # endif

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=0ef5d821014b569e5c58610494380ef3e1f3e23d

commit 0ef5d821014b569e5c58610494380ef3e1f3e23d
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 14:19:14 2015 -0700

    Mark i386 _dl_make_tlsdesc_dynamic hidden
    
    Since i386 _dl_make_tlsdesc_dynamic is only used internally in ld.so, it
    can be made hidden.
    
    	[BZ #19122]
    	* sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Add
    	attribute_hidden.

diff --git a/sysdeps/i386/dl-tlsdesc.h b/sysdeps/i386/dl-tlsdesc.h
index c584233..ee6d7fa 100644
--- a/sysdeps/i386/dl-tlsdesc.h
+++ b/sysdeps/i386/dl-tlsdesc.h
@@ -50,8 +50,9 @@ extern ptrdiff_t attribute_hidden __attribute__ ((regparm (1)))
   _dl_tlsdesc_resolve_hold (struct tlsdesc *);
 
 # ifdef SHARED
-extern void *internal_function _dl_make_tlsdesc_dynamic (struct link_map *map,
-							 size_t ti_offset);
+extern void *_dl_make_tlsdesc_dynamic (struct link_map *map,
+				       size_t ti_offset)
+  internal_function attribute_hidden;
 
 extern ptrdiff_t attribute_hidden __attribute__ ((regparm (1)))
   _dl_tlsdesc_dynamic (struct tlsdesc *);

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=cc841df48a44f63bc5f40f6015b07e9d43b14140

commit cc841df48a44f63bc5f40f6015b07e9d43b14140
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 14:17:48 2015 -0700

    Mark x86_64 _dl_unmap hidden
    
    Since x86_64 _dl_unmap is only used internally in ld.so, it can be made
    hidden.
    
    	[BZ #19122]
    	* sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.

diff --git a/sysdeps/x86_64/dl-lookupcfg.h b/sysdeps/x86_64/dl-lookupcfg.h
index 310f261..a42d5ef 100644
--- a/sysdeps/x86_64/dl-lookupcfg.h
+++ b/sysdeps/x86_64/dl-lookupcfg.h
@@ -26,6 +26,7 @@
 
 struct link_map;
 
-extern void internal_function _dl_unmap (struct link_map *map);
+extern void _dl_unmap (struct link_map *map)
+  internal_function attribute_hidden;
 
 #define DL_UNMAP(map) _dl_unmap (map)

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=59940f47c58719b1ae8852047ee971e69314d617

commit 59940f47c58719b1ae8852047ee971e69314d617
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Oct 14 14:15:14 2015 -0700

    Mark i386 _dl_unmap hidden
    
    Since i386 _dl_unmap is only used internally in ld.so, it can be made
    hidden.
    
    	[BZ #19122]
    	* sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.

diff --git a/sysdeps/i386/dl-lookupcfg.h b/sysdeps/i386/dl-lookupcfg.h
index 310f261..a42d5ef 100644
--- a/sysdeps/i386/dl-lookupcfg.h
+++ b/sysdeps/i386/dl-lookupcfg.h
@@ -26,6 +26,7 @@
 
 struct link_map;
 
-extern void internal_function _dl_unmap (struct link_map *map);
+extern void _dl_unmap (struct link_map *map)
+  internal_function attribute_hidden;
 
 #define DL_UNMAP(map) _dl_unmap (map)

-----------------------------------------------------------------------


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]