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 master updated. glibc-2.26-486-g397286e


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, master has been updated
       via  397286ea93ad30c24a5dad7928d0056c7b7d603d (commit)
       via  d0a4512bd437c8caebc0e6ce295e4e0a5079e6b3 (commit)
       via  c0769f7031b8293e7dc2762bff98d75691fe6a0d (commit)
       via  0e7d5b6e241b3e367b806f65f6df1e7469af68fa (commit)
       via  bde06c87b7de97b5cd4721414b11af6e0d09187e (commit)
       via  fa4265909edaa5118f7860f452e2fb9da48d0f6e (commit)
       via  2f8a05d826f554210eb2bec8dd6344c9615e00d7 (commit)
       via  7bfd08ac5be538a2beaa48f029944e01fb3b5d7a (commit)
       via  0e1fd06cde496eb4f3cefdbee44e794ab5d52cb7 (commit)
       via  36e7ae1e9d3b6a434e119aab4d10176aaaddf0c3 (commit)
       via  87078544f24cfbd355bf2f7e63a0d01ff7c96cca (commit)
       via  dd3121df08d5ee44ba770d12365022aa802fb364 (commit)
       via  047d1a81fd82db4cd7458fec37230f3b31b414e9 (commit)
       via  fd331b1179df7fef8016273fb26f5f054793875a (commit)
       via  57f859bdb7be1acb7eea48aba8edf0c6b5900191 (commit)
       via  d19033298f832f5b3e10da6f07e7959f0483df74 (commit)
       via  b4744101f36021bf2dde713682abbd0cc6935168 (commit)
       via  43b7dfd1b6cfd1b603e96270dc6a0b1758f81a13 (commit)
       via  2c0cd8f81fee4d9dc8e34254f4f6ed56d5bb6f59 (commit)
      from  8369d216dcc0e192e0e1243d9dad443e68f13f06 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

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

commit 397286ea93ad30c24a5dad7928d0056c7b7d603d
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 18:05:52 2017 -0700

    Hide internal fadvise64/fallocate64 functions [BZ #18822]
    
    Hide internal fadvise64/fallocate64 functions to allow direct access
    within libc.so and libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* sysdeps/unix/sysv/linux/posix_fadvise64.c
    	(__posix_fadvise64_l64): Add Add libc_hidden_proto and
    	libc_hidden_def.
    	* sysdeps/unix/sysv/linux/posix_fallocate64.c
    	(__posix_fallocate64_l64): Likewise.

diff --git a/ChangeLog b/ChangeLog
index 567a258..2137460 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,15 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* sysdeps/unix/sysv/linux/posix_fadvise64.c
+	(__posix_fadvise64_l64): Add Add libc_hidden_proto and
+	libc_hidden_def.
+	* sysdeps/unix/sysv/linux/posix_fallocate64.c
+	(__posix_fallocate64_l64): Likewise.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* sysdeps/unix/sysv/linux/sched_setaffinity.c
 	(__sched_setaffinity_new): Add libc_hidden_proto and
 	libc_hidden_def.
diff --git a/sysdeps/unix/sysv/linux/posix_fadvise64.c b/sysdeps/unix/sysv/linux/posix_fadvise64.c
index aaee60a..6dee86c 100644
--- a/sysdeps/unix/sysv/linux/posix_fadvise64.c
+++ b/sysdeps/unix/sysv/linux/posix_fadvise64.c
@@ -20,6 +20,7 @@
 #include <shlib-compat.h>
 
 int __posix_fadvise64_l64 (int fd, off64_t offset, off64_t len, int advise);
+libc_hidden_proto (__posix_fadvise64_l64)
 
 /* Both arm and powerpc implements fadvise64_64 with last 'advise' argument
    just after 'fd' to avoid the requirement of implementing 7-arg syscalls.
@@ -83,3 +84,4 @@ weak_alias (__posix_fadvise64_l64, posix_fadvise64);
 weak_alias (__posix_fadvise64_l64, posix_fadvise64);
 strong_alias (__posix_fadvise64_l64, posix_fadvise);
 #endif
+libc_hidden_def (__posix_fadvise64_l64)
diff --git a/sysdeps/unix/sysv/linux/posix_fallocate64.c b/sysdeps/unix/sysv/linux/posix_fallocate64.c
index eb05f7c..76cf27a 100644
--- a/sysdeps/unix/sysv/linux/posix_fallocate64.c
+++ b/sysdeps/unix/sysv/linux/posix_fallocate64.c
@@ -19,6 +19,7 @@
 #include <sysdep.h>
 
 extern int __posix_fallocate64_l64 (int fd, __off64_t offset, __off64_t len);
+libc_hidden_proto (__posix_fallocate64_l64)
 #define __posix_fallocate64_l64 static internal_fallocate64
 #include <sysdeps/posix/posix_fallocate64.c>
 #undef __posix_fallocate64_l64
@@ -42,3 +43,4 @@ __posix_fallocate64_l64 (int fd, __off64_t offset, __off64_t len)
     return INTERNAL_SYSCALL_ERRNO (res, err);
   return internal_fallocate64 (fd, offset, len);
 }
+libc_hidden_def (__posix_fallocate64_l64)

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

commit d0a4512bd437c8caebc0e6ce295e4e0a5079e6b3
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 18:03:46 2017 -0700

    Hide internal __sched_setaffinity_new function [BZ #18822]
    
    Hide internal __sched_setaffinity_new function to allow direct access
    within libc.so and libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* sysdeps/unix/sysv/linux/sched_setaffinity.c
    	(__sched_setaffinity_new): Add libc_hidden_proto and
    	libc_hidden_def.

diff --git a/ChangeLog b/ChangeLog
index 5d417cb..567a258 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* sysdeps/unix/sysv/linux/sched_setaffinity.c
+	(__sched_setaffinity_new): Add libc_hidden_proto and
+	libc_hidden_def.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* include/glob.h (__glob64): Add libc_hidden_proto.
 	* sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
 	libc_hidden_def.
diff --git a/sysdeps/unix/sysv/linux/sched_setaffinity.c b/sysdeps/unix/sysv/linux/sched_setaffinity.c
index 8854e72..9a40b58 100644
--- a/sysdeps/unix/sysv/linux/sched_setaffinity.c
+++ b/sysdeps/unix/sysv/linux/sched_setaffinity.c
@@ -26,6 +26,9 @@
 
 #ifdef __NR_sched_setaffinity
 
+extern int __sched_setaffinity_new (pid_t, size_t, const cpu_set_t *);
+libc_hidden_proto (__sched_setaffinity_new)
+
 int
 __sched_setaffinity_new (pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset)
 {
@@ -38,6 +41,7 @@ __sched_setaffinity_new (pid_t pid, size_t cpusetsize, const cpu_set_t *cpuset)
 
   return result;
 }
+libc_hidden_def (__sched_setaffinity_new)
 versioned_symbol (libc, __sched_setaffinity_new, sched_setaffinity,
 		  GLIBC_2_3_4);
 

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

commit c0769f7031b8293e7dc2762bff98d75691fe6a0d
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 18:01:54 2017 -0700

    Hide internal __glob64 function [BZ #18822]
    
    Hide internal __glob64 function to allow direct access within libc.so
    and libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* include/glob.h (__glob64): Add libc_hidden_proto.
    	* sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
    	libc_hidden_def.

diff --git a/ChangeLog b/ChangeLog
index 0e4520c..5d417cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* include/glob.h (__glob64): Add libc_hidden_proto.
+	* sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
+	libc_hidden_def.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
 	attribute_hidden.
 
diff --git a/include/glob.h b/include/glob.h
index 228fe30..1d2f787 100644
--- a/include/glob.h
+++ b/include/glob.h
@@ -12,6 +12,7 @@ extern int __glob_pattern_p (const char *__pattern, int __quote);
 extern int __glob64 (const char *__pattern, int __flags,
 		     int (*__errfunc) (const char *, int),
 		     glob64_t *__pglob);
+libc_hidden_proto (__glob64)
 #endif
 
 #endif
diff --git a/sysdeps/unix/sysv/linux/glob64.c b/sysdeps/unix/sysv/linux/glob64.c
index 0189d1c..0239425 100644
--- a/sysdeps/unix/sysv/linux/glob64.c
+++ b/sysdeps/unix/sysv/linux/glob64.c
@@ -44,6 +44,7 @@
 strong_alias (__glob64, glob64)
 libc_hidden_def (glob64)
 # else
+libc_hidden_def (__glob64)
 versioned_symbol (libc, __glob64, glob64, GLIBC_2_27);
 libc_hidden_ver (__glob64, glob64)
 # endif

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

commit 0e7d5b6e241b3e367b806f65f6df1e7469af68fa
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 17:59:51 2017 -0700

    Hide internal __new_getrlimit function [BZ #18822]
    
    Hide internal __new_getrlimit function to allow direct access within
    libc.so and libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
    	attribute_hidden.

diff --git a/ChangeLog b/ChangeLog
index 85e4e02..0e4520c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
+	attribute_hidden.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* stdlib/exit.h (__new_exitfn): Add attribute_hidden.
 
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
diff --git a/sysdeps/unix/sysv/linux/getrlimit64.c b/sysdeps/unix/sysv/linux/getrlimit64.c
index 56af3c0..37827e5 100644
--- a/sysdeps/unix/sysv/linux/getrlimit64.c
+++ b/sysdeps/unix/sysv/linux/getrlimit64.c
@@ -53,7 +53,8 @@ weak_alias (__getrlimit64, getrlimit)
 
 #if SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)
 /* Back compatible 2GiB limited rlimit.  */
-extern int __new_getrlimit (enum __rlimit_resource, struct rlimit *);
+extern int __new_getrlimit (enum __rlimit_resource, struct rlimit *)
+  attribute_hidden;
 
 int
 attribute_compat_text_section

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

commit bde06c87b7de97b5cd4721414b11af6e0d09187e
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 17:58:08 2017 -0700

    Hide internal __new_exitfn function [BZ #18822]
    
    Hide internal __new_exitfn function to allow direct access within libc.so
    and libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* stdlib/exit.h (__new_exitfn): Add attribute_hidden.

diff --git a/ChangeLog b/ChangeLog
index 85de0ee..85e4e02 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* stdlib/exit.h (__new_exitfn): Add attribute_hidden.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* mon/gmon.c (__moncontrol): Add libc_hidden_proto and
 	libc_hidden_def.
 
diff --git a/stdlib/exit.h b/stdlib/exit.h
index dbf9f2d..eea5072 100644
--- a/stdlib/exit.h
+++ b/stdlib/exit.h
@@ -77,8 +77,8 @@ extern bool __exit_funcs_done attribute_hidden;
 __libc_lock_define (extern, __exit_funcs_lock);
 
 
-extern struct exit_function *__new_exitfn (struct exit_function_list **listp);
-
+extern struct exit_function *__new_exitfn (struct exit_function_list **listp)
+  attribute_hidden;
 
 extern void __run_exit_handlers (int status,
 				 struct exit_function_list **listp,

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

commit fa4265909edaa5118f7860f452e2fb9da48d0f6e
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 17:56:46 2017 -0700

    Hide internal __moncontrol function [BZ #18822]
    
    Hide internal __moncontrol function to allow direct access within libc.so
    and libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* mon/gmon.c (__moncontrol): Add libc_hidden_proto and
    	libc_hidden_def.

diff --git a/ChangeLog b/ChangeLog
index 2782255..85de0ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* mon/gmon.c (__moncontrol): Add libc_hidden_proto and
+	libc_hidden_def.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* csu/version.c (__libc_print_version): Add attribute_hidden.
 
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
diff --git a/gmon/gmon.c b/gmon/gmon.c
index 4e48eba..f1aa3b7 100644
--- a/gmon/gmon.c
+++ b/gmon/gmon.c
@@ -62,6 +62,7 @@ static int	s_scale;
 
 void moncontrol (int mode);
 void __moncontrol (int mode);
+libc_hidden_proto (__moncontrol)
 static void write_hist (int fd);
 static void write_call_graph (int fd);
 static void write_bb_counts (int fd);
@@ -93,6 +94,7 @@ __moncontrol (int mode)
       p->state = GMON_PROF_OFF;
     }
 }
+libc_hidden_def (__moncontrol)
 weak_alias (__moncontrol, moncontrol)
 
 

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

commit 2f8a05d826f554210eb2bec8dd6344c9615e00d7
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 17:55:11 2017 -0700

    Hide internal __libc_print_version function [BZ #18822]
    
    Hide internal __libc_print_version function to allow direct access
    within libc.so and libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* csu/version.c (__libc_print_version): Add attribute_hidden.

diff --git a/ChangeLog b/ChangeLog
index 656b922..2782255 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* csu/version.c (__libc_print_version): Add attribute_hidden.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* include/libc-internal.h (__init_misc): Add attribute_hidden.
 
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
diff --git a/csu/version.c b/csu/version.c
index 8e86d49..a88cc2d 100644
--- a/csu/version.c
+++ b/csu/version.c
@@ -38,7 +38,7 @@ LIBC_ABIS_STRING
 
 #include <unistd.h>
 
-extern void __libc_print_version (void);
+extern void __libc_print_version (void) attribute_hidden;
 void
 __libc_print_version (void)
 {

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

commit 7bfd08ac5be538a2beaa48f029944e01fb3b5d7a
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 17:53:31 2017 -0700

    Hide internal __init_misc function [BZ #18822]
    
    Hide internal __init_misc function to allow direct access within libc.so
    and libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* include/libc-internal.h (__init_misc): Add attribute_hidden.

diff --git a/ChangeLog b/ChangeLog
index 1d92fd6..656b922 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* include/libc-internal.h (__init_misc): Add attribute_hidden.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* include/fpu_control.h (__setfpucw): Add attribute_hidden.
 
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
diff --git a/include/libc-internal.h b/include/libc-internal.h
index c501c95..7403c24 100644
--- a/include/libc-internal.h
+++ b/include/libc-internal.h
@@ -47,7 +47,7 @@ libc_hidden_proto (__libc_freeres)
 extern void __libc_thread_freeres (void);
 
 /* Define and initialize `__progname' et. al.  */
-extern void __init_misc (int, char **, char **);
+extern void __init_misc (int, char **, char **) attribute_hidden;
 
 # if IS_IN (rtld)
 extern __typeof (__profile_frequency) __profile_frequency attribute_hidden;

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

commit 0e1fd06cde496eb4f3cefdbee44e794ab5d52cb7
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 17:52:15 2017 -0700

    Hide internal __setfpucw function [BZ #18822]
    
    Hide internal __setfpucw function to allow direct access within libc.so
    and libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* include/fpu_control.h (__setfpucw): Add attribute_hidden.

diff --git a/ChangeLog b/ChangeLog
index 0563a75..1d92fd6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* include/fpu_control.h (__setfpucw): Add attribute_hidden.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* nscd/nscd_helper.c (__nis_hash): New prototype.
 
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
diff --git a/include/fpu_control.h b/include/fpu_control.h
index 4498a83..5c6b386 100644
--- a/include/fpu_control.h
+++ b/include/fpu_control.h
@@ -4,7 +4,7 @@
 # ifndef _ISOMAC
 
 /* Called at startup.  It can be used to manipulate fpu control register.  */
-extern void __setfpucw (fpu_control_t);
+extern void __setfpucw (fpu_control_t) attribute_hidden;
 
 # endif /* !_ISOMAC */
 #endif /* fpu_control.h */

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

commit 36e7ae1e9d3b6a434e119aab4d10176aaaddf0c3
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 17:49:47 2017 -0700

    Hide internal __nis_hash function [BZ #18822]
    
    Hide internal __nis_hash function to allow direct access within libc.so
    and libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* nscd/nscd_helper.c (__nis_hash): New prototype.

diff --git a/ChangeLog b/ChangeLog
index dc58bf1..0563a75 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* nscd/nscd_helper.c (__nis_hash): New prototype.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* include/termios.h (__tcgetattr): Add libc_hidden_proto.
 	* sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
 	libc_hidden_def.
diff --git a/nscd/nscd_helper.c b/nscd/nscd_helper.c
index a225623..56e6d14 100644
--- a/nscd/nscd_helper.c
+++ b/nscd/nscd_helper.c
@@ -443,6 +443,11 @@ __nscd_get_map_ref (request_type type, const char *name,
 #define MINIMUM_HASHENTRY_SIZE \
   (offsetof (struct hashentry, dellist) + sizeof (int32_t))
 
+/* __nis_hash is defined in nis_hash.c which is included both libnsl
+   and libc.  Since the one in libnsl is exported and the one in libc
+   is hidden, __nis_hash is marked as hidden where it is referenced,
+   not where it is defined.  */
+extern __typeof (__nis_hash) __nis_hash attribute_hidden;
 
 /* Don't return const struct datahead *, as eventhough the record
    is normally constant, it can change arbitrarily during nscd

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

commit 87078544f24cfbd355bf2f7e63a0d01ff7c96cca
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 17:48:11 2017 -0700

    Hide internal __tcgetattr function [BZ #18822]
    
    Hide internal __tcgetattr function to allow direct access within libc.so
    and libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* include/termios.h (__tcgetattr): Add libc_hidden_proto.
    	* sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
    	libc_hidden_def.
    	* sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
    	* termios/tcgetattr.c (__tcgetattr): Likewise.

diff --git a/ChangeLog b/ChangeLog
index 86d30be..dc58bf1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,15 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* include/termios.h (__tcgetattr): Add libc_hidden_proto.
+	* sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
+	libc_hidden_def.
+	* sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
+	* termios/tcgetattr.c (__tcgetattr): Likewise.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
 	* resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
 	* sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
diff --git a/include/termios.h b/include/termios.h
index 1a36e22..e2c35eb 100644
--- a/include/termios.h
+++ b/include/termios.h
@@ -9,6 +9,7 @@ extern int __tcsetattr (int __fd, int __optional_actions,
 
 extern int __libc_tcdrain (int __fd);
 
+libc_hidden_proto (__tcgetattr)
 libc_hidden_proto (tcsetattr)
 libc_hidden_proto (cfsetispeed)
 libc_hidden_proto (cfsetospeed)
diff --git a/sysdeps/unix/bsd/tcgetattr.c b/sysdeps/unix/bsd/tcgetattr.c
index 1779bb9..654f1e6 100644
--- a/sysdeps/unix/bsd/tcgetattr.c
+++ b/sysdeps/unix/bsd/tcgetattr.c
@@ -35,4 +35,5 @@ __tcgetattr (int fd, struct termios *termios_p)
   return __ioctl (fd, TIOCGETA, termios_p);
 }
 
+libc_hidden_def (__tcgetattr)
 weak_alias (__tcgetattr, tcgetattr)
diff --git a/sysdeps/unix/sysv/linux/tcgetattr.c b/sysdeps/unix/sysv/linux/tcgetattr.c
index b1d73d0..99a59b6 100644
--- a/sysdeps/unix/sysv/linux/tcgetattr.c
+++ b/sysdeps/unix/sysv/linux/tcgetattr.c
@@ -76,4 +76,5 @@ __tcgetattr (int fd, struct termios *termios_p)
   return retval;
 }
 
+libc_hidden_def (__tcgetattr)
 weak_alias (__tcgetattr, tcgetattr)
diff --git a/termios/tcgetattr.c b/termios/tcgetattr.c
index a5c076b..12a56dd 100644
--- a/termios/tcgetattr.c
+++ b/termios/tcgetattr.c
@@ -39,4 +39,5 @@ __tcgetattr (int fd, struct termios *termios_p)
 }
 stub_warning (tcgetattr)
 
+libc_hidden_def (__tcgetattr)
 weak_alias (__tcgetattr, tcgetattr)

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

commit dd3121df08d5ee44ba770d12365022aa802fb364
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 17:46:39 2017 -0700

    Hide internal __setrlimit function [BZ #18822]
    
    Hide internal __setrlimit function to allow direct access within libc.so
    and libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
    	* resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
    	* sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
    	* sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
    	* sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.

diff --git a/ChangeLog b/ChangeLog
index 709f983..86d30be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,15 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
+	* resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
+	* sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
+	* sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
+	* sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* include/monetary.h (__vstrfmon_l): Add attribute_hidden.
 
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
diff --git a/include/sys/resource.h b/include/sys/resource.h
index 688c46c..c55d4e6 100644
--- a/include/sys/resource.h
+++ b/include/sys/resource.h
@@ -23,5 +23,6 @@ extern int __getrusage (enum __rusage_who __who, struct rusage *__usage)
 
 extern int __setrlimit (enum __rlimit_resource __resource,
 			const struct rlimit *__rlimits);
+libc_hidden_proto (__setrlimit);
 #endif
 #endif
diff --git a/resource/setrlimit.c b/resource/setrlimit.c
index 6e3a1fb..e02b6a8 100644
--- a/resource/setrlimit.c
+++ b/resource/setrlimit.c
@@ -29,6 +29,7 @@ __setrlimit (enum __rlimit_resource resource, const struct rlimit *rlimits)
   __set_errno (ENOSYS);
   return -1;
 }
+libc_hidden_def (__setrlimit)
 weak_alias (__setrlimit, setrlimit)
 
 stub_warning (setrlimit)
diff --git a/sysdeps/mach/hurd/setrlimit.c b/sysdeps/mach/hurd/setrlimit.c
index 3ea9af2..693422a 100644
--- a/sysdeps/mach/hurd/setrlimit.c
+++ b/sysdeps/mach/hurd/setrlimit.c
@@ -53,4 +53,5 @@ __setrlimit (enum __rlimit_resource resource, const struct rlimit *rlimits)
   return 0;
 }
 
+libc_hidden_def (__setrlimit)
 weak_alias (__setrlimit, setrlimit)
diff --git a/sysdeps/unix/sysv/linux/setrlimit.c b/sysdeps/unix/sysv/linux/setrlimit.c
index 8773c78..50a2163 100644
--- a/sysdeps/unix/sysv/linux/setrlimit.c
+++ b/sysdeps/unix/sysv/linux/setrlimit.c
@@ -48,6 +48,7 @@ __setrlimit (enum __rlimit_resource resource, const struct rlimit *rlim)
   return INLINE_SYSCALL_CALL (prlimit64, 0, resource, &rlim64, NULL);
 }
 
+libc_hidden_def (__setrlimit)
 # if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)
 strong_alias (__setrlimit, __setrlimit_1)
 compat_symbol (libc, __setrlimit, setrlimit, GLIBC_2_0);
diff --git a/sysdeps/unix/sysv/linux/setrlimit64.c b/sysdeps/unix/sysv/linux/setrlimit64.c
index db1960f..ff835c8 100644
--- a/sysdeps/unix/sysv/linux/setrlimit64.c
+++ b/sysdeps/unix/sysv/linux/setrlimit64.c
@@ -43,4 +43,7 @@ weak_alias (__setrlimit64, setrlimit64)
 #if __RLIM_T_MATCHES_RLIM64_T
 strong_alias (__setrlimit64, __setrlimit)
 weak_alias (__setrlimit64, setrlimit)
+# ifdef SHARED
+__hidden_ver1 (__setrlimit64, __GI___setrlimit, __setrlimit64);
+# endif
 #endif

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

commit 047d1a81fd82db4cd7458fec37230f3b31b414e9
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 17:44:52 2017 -0700

    Hide internal __vstrfmon_l function [BZ #18822]
    
    Hide internal __vstrfmon_l function to allow direct access within libc.so
    and libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* include/monetary.h (__vstrfmon_l): Add attribute_hidden.

diff --git a/ChangeLog b/ChangeLog
index e799d16..709f983 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* include/monetary.h (__vstrfmon_l): Add attribute_hidden.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* include/sched.h (__sched_setparam): Add libc_hidden_proto.
 	* posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
 
diff --git a/include/monetary.h b/include/monetary.h
index 2a18263..c130ed5 100644
--- a/include/monetary.h
+++ b/include/monetary.h
@@ -3,5 +3,6 @@
 #include <stdarg.h>
 
 extern ssize_t __vstrfmon_l (char *s, size_t maxsize, locale_t loc,
-			     const char *format, va_list ap);
+			     const char *format, va_list ap)
+     attribute_hidden;
 #endif

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

commit fd331b1179df7fef8016273fb26f5f054793875a
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 17:43:13 2017 -0700

    Hide internal __sched_setparam function [BZ #18822]
    
    Hide internal __sched_setparam function to allow direct access within
    libc.so and libc.a without using GOT nor PLT.
    
    __GI___sched_setparam is defined when sysdeps/unix/syscalls.list is
    used to generate sched_setparam.  Otherwise libc_hidden_def is needed
    explicitly.
    
    	[BZ #18822]
    	* include/sched.h (__sched_setparam): Add libc_hidden_proto.
    	* posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.

diff --git a/ChangeLog b/ChangeLog
index 1d9b8a4..e799d16 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* include/sched.h (__sched_setparam): Add libc_hidden_proto.
+	* posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* intl/hash-string.h (__hash_string): Add attribute_hidden.
 
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
diff --git a/include/sched.h b/include/sched.h
index f75faed..b698f78 100644
--- a/include/sched.h
+++ b/include/sched.h
@@ -5,6 +5,7 @@
 /* Now define the internal interfaces.  */
 extern int __sched_setparam (__pid_t __pid,
 			     const struct sched_param *__param);
+libc_hidden_proto (__sched_setparam)
 extern int __sched_getparam (__pid_t __pid, struct sched_param *__param);
 extern int __sched_setscheduler (__pid_t __pid, int __policy,
 				 const struct sched_param *__param);
diff --git a/posix/sched_setp.c b/posix/sched_setp.c
index 17c3af3..ad50d5a 100644
--- a/posix/sched_setp.c
+++ b/posix/sched_setp.c
@@ -29,4 +29,5 @@ __sched_setparam (pid_t pid, const struct sched_param *param)
 }
 stub_warning (sched_setparam)
 
+libc_hidden_def (__sched_setparam)
 weak_alias (__sched_setparam, sched_setparam)

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

commit 57f859bdb7be1acb7eea48aba8edf0c6b5900191
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 17:41:20 2017 -0700

    Hide internal __hash_string function [BZ #18822]
    
    Hide internal __hash_string function to allow direct access within
    libc.so and libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* intl/hash-string.h (__hash_string): Add attribute_hidden.

diff --git a/ChangeLog b/ChangeLog
index 24de2e0..1d9b8a4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* intl/hash-string.h (__hash_string): Add attribute_hidden.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* include/mntent.h (__hasmntopt): Add libc_hidden_proto.
 	* misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
 
diff --git a/intl/hash-string.h b/intl/hash-string.h
index 21dcb16..e579a7c 100644
--- a/intl/hash-string.h
+++ b/intl/hash-string.h
@@ -31,4 +31,5 @@
 /* Defines the so called `hashpjw' function by P.J. Weinberger
    [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools,
    1986, 1987 Bell Telephone Laboratories, Inc.]  */
-extern unsigned long int __hash_string (const char *str_param);
+extern unsigned long int __hash_string (const char *str_param)
+     attribute_hidden;

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

commit d19033298f832f5b3e10da6f07e7959f0483df74
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 17:37:27 2017 -0700

    Hide internal __hasmntopt function [BZ #18822]
    
    Hide internal __hasmntopt function to allow direct access within libc.so
    and libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* include/mntent.h (__hasmntopt): Add libc_hidden_proto.
    	* misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.

diff --git a/ChangeLog b/ChangeLog
index 7514e86..24de2e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* include/mntent.h (__hasmntopt): Add libc_hidden_proto.
+	* misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* include/ifreq.h: New file.
 	* sysdeps/generic/ifreq.h (__if_nextreq): Removed.
 	(__ifreq): Likewise.
diff --git a/include/mntent.h b/include/mntent.h
index 169210f..a16298e 100644
--- a/include/mntent.h
+++ b/include/mntent.h
@@ -15,6 +15,7 @@ extern char *__hasmntopt (const struct mntent *__mnt, const char *__opt);
 libc_hidden_proto (__setmntent)
 libc_hidden_proto (__getmntent_r)
 libc_hidden_proto (__endmntent)
+libc_hidden_proto (__hasmntopt)
 
 # endif /* !_ISOMAC */
 #endif
diff --git a/misc/mntent_r.c b/misc/mntent_r.c
index 30f5521..96bd1e2 100644
--- a/misc/mntent_r.c
+++ b/misc/mntent_r.c
@@ -293,4 +293,5 @@ __hasmntopt (const struct mntent *mnt, const char *opt)
 
   return NULL;
 }
+libc_hidden_def (__hasmntopt)
 weak_alias (__hasmntopt, hasmntopt)

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

commit b4744101f36021bf2dde713682abbd0cc6935168
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 17:35:26 2017 -0700

    Hide internal __ifreq function [BZ #18822]
    
    Hide internal __ifreq function to allow direct access within libc.so and
    libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* include/ifreq.h: New file.
    	* sysdeps/generic/ifreq.h (__if_nextreq): Removed.
    	(__ifreq): Likewise.
    	* sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
    	(__ifreq): Likewise.

diff --git a/ChangeLog b/ChangeLog
index ad10a7a..7514e86 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,15 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* include/ifreq.h: New file.
+	* sysdeps/generic/ifreq.h (__if_nextreq): Removed.
+	(__ifreq): Likewise.
+	* sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
+	(__ifreq): Likewise.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* include/idna.h: New file.
 	* inet/getnameinfo.c: Include <idna.h> instead of
 	<libidn/idna.h>.
diff --git a/include/ifreq.h b/include/ifreq.h
new file mode 100644
index 0000000..94e984c
--- /dev/null
+++ b/include/ifreq.h
@@ -0,0 +1,14 @@
+#include_next <ifreq.h>
+
+static inline struct ifreq *
+__if_nextreq (struct ifreq *ifr)
+{
+#ifdef _HAVE_SA_LEN
+  if (ifr->ifr_addr.sa_len > sizeof ifr->ifr_addr)
+    return (struct ifreq *) ((char *) &ifr->ifr_addr + ifr->ifr_addr.sa_len);
+#endif
+  return ifr + 1;
+}
+
+extern void __ifreq (struct ifreq **ifreqs, int *num_ifs, int sockfd)
+     attribute_hidden;
diff --git a/sysdeps/generic/ifreq.h b/sysdeps/generic/ifreq.h
index 6ebd7c8..b39739d 100644
--- a/sysdeps/generic/ifreq.h
+++ b/sysdeps/generic/ifreq.h
@@ -23,18 +23,6 @@
 #include <sys/socket.h>
 #include <sys/ioctl.h>
 
-static inline struct ifreq *
-__if_nextreq (struct ifreq *ifr)
-{
-#ifdef _HAVE_SA_LEN
-  if (ifr->ifr_addr.sa_len > sizeof ifr->ifr_addr)
-    return (struct ifreq *) ((char *) &ifr->ifr_addr + ifr->ifr_addr.sa_len);
-#endif
-  return ifr + 1;
-}
-
-extern void __ifreq (struct ifreq **ifreqs, int *num_ifs, int sockfd);
-
 
 static inline void
 __if_freereq (struct ifreq *ifreqs, int num_ifs)
diff --git a/sysdeps/mach/hurd/ifreq.h b/sysdeps/mach/hurd/ifreq.h
index eceeb7a..3dd17f7 100644
--- a/sysdeps/mach/hurd/ifreq.h
+++ b/sysdeps/mach/hurd/ifreq.h
@@ -24,18 +24,6 @@
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 
-static inline struct ifreq *
-__if_nextreq (struct ifreq *ifr)
-{
-#ifdef _HAVE_SA_LEN
-  if (ifr->ifr_addr.sa_len > sizeof ifr->ifr_addr)
-    return (struct ifreq *) ((char *) &ifr->ifr_addr + ifr->ifr_addr.sa_len);
-#endif
-  return ifr + 1;
-}
-
-extern void __ifreq (struct ifreq **ifreqs, int *num_ifs, int sockfd);
-
 
 static inline void
 __if_freereq (struct ifreq *ifreqs, int num_ifs)

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

commit 43b7dfd1b6cfd1b603e96270dc6a0b1758f81a13
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 17:33:08 2017 -0700

    Hide internal idna functions [BZ #18822]
    
    Hide internal idna functions to allow direct access within libc.so and
    libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* include/idna.h: New file.
    	* inet/getnameinfo.c: Include <idna.h> instead of
    	<libidn/idna.h>.
    	(__idna_to_unicode_lzlz): Removed.
    	* sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
    	<libidn/idna.h>.
    	(__idna_to_ascii_lz): Removed.
    	(__idna_to_unicode_lzlz): Likewise.

diff --git a/ChangeLog b/ChangeLog
index dd228bc..ad10a7a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,18 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* include/idna.h: New file.
+	* inet/getnameinfo.c: Include <idna.h> instead of
+	<libidn/idna.h>.
+	(__idna_to_unicode_lzlz): Removed.
+	* sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
+	<libidn/idna.h>.
+	(__idna_to_ascii_lz): Removed.
+	(__idna_to_unicode_lzlz): Likewise.
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* include/plural-exp.h: New file.
 	* intl/plural-exp.c: Include <plural-exp.h> instead of
 	"plural-exp.h".
diff --git a/include/idna.h b/include/idna.h
new file mode 100644
index 0000000..dcb271d
--- /dev/null
+++ b/include/idna.h
@@ -0,0 +1,8 @@
+#ifndef _IDNA_H
+#include <libidn/idna.h>
+
+extern __typeof (idna_to_ascii_lz) __idna_to_ascii_lz attribute_hidden;
+extern __typeof (idna_to_unicode_lzlz ) __idna_to_unicode_lzlz
+     attribute_hidden;
+
+#endif
diff --git a/inet/getnameinfo.c b/inet/getnameinfo.c
index b41e555..292e087 100644
--- a/inet/getnameinfo.c
+++ b/inet/getnameinfo.c
@@ -73,9 +73,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <scratch_buffer.h>
 
 #ifdef HAVE_LIBIDN
-# include <libidn/idna.h>
-extern int __idna_to_unicode_lzlz (const char *input, char **output,
-				   int flags);
+# include <idna.h>
 #endif
 
 #ifndef min
diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c
index ce099bd..c58d54d 100644
--- a/sysdeps/posix/getaddrinfo.c
+++ b/sysdeps/posix/getaddrinfo.c
@@ -86,10 +86,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <inet/net-internal.h>
 
 #ifdef HAVE_LIBIDN
-extern int __idna_to_ascii_lz (const char *input, char **output, int flags);
-extern int __idna_to_unicode_lzlz (const char *input, char **output,
-				   int flags);
-# include <libidn/idna.h>
+# include <idna.h>
 #endif
 
 struct gaih_service

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

commit 2c0cd8f81fee4d9dc8e34254f4f6ed56d5bb6f59
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Sun Oct 1 17:30:49 2017 -0700

    Hide internal __gettextparse function [BZ #18822]
    
    Hide internal __gettextparse function to allow direct access within
    libc.so and libc.a without using GOT nor PLT.
    
    	[BZ #18822]
    	* include/plural-exp.h: New file.
    	* intl/plural-exp.c: Include <plural-exp.h> instead of
    	"plural-exp.h".

diff --git a/ChangeLog b/ChangeLog
index e5edb86..dd228bc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* include/plural-exp.h: New file.
+	* intl/plural-exp.c: Include <plural-exp.h> instead of
+	"plural-exp.h".
+
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* sysdeps/unix/sysv/linux/getsourcefilter.c: Include
 	"getsourcefilter.h".
 	* sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
diff --git a/include/plural-exp.h b/include/plural-exp.h
new file mode 100644
index 0000000..3b026f8
--- /dev/null
+++ b/include/plural-exp.h
@@ -0,0 +1,8 @@
+#ifndef _PLURAL_EXP_H
+#include <intl/plural-exp.h>
+
+#ifndef _ISOMAC
+extern __typeof (__gettextparse) __gettextparse attribute_hidden;
+#endif /* !_ISOMAC */
+
+#endif
diff --git a/intl/plural-exp.c b/intl/plural-exp.c
index 8c15032..f5249d5 100644
--- a/intl/plural-exp.c
+++ b/intl/plural-exp.c
@@ -23,7 +23,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "plural-exp.h"
+#include <plural-exp.h>
 
 #if (defined __GNUC__ && !(defined __APPLE_CC_ && __APPLE_CC__ > 1) && \
      !defined __cplusplus)					       \

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

Summary of changes:
 ChangeLog                                   |  128 +++++++++++++++++++++++++++
 csu/version.c                               |    2 +-
 gmon/gmon.c                                 |    2 +
 include/fpu_control.h                       |    2 +-
 include/glob.h                              |    1 +
 include/idna.h                              |    8 ++
 include/ifreq.h                             |   14 +++
 include/libc-internal.h                     |    2 +-
 include/mntent.h                            |    1 +
 include/monetary.h                          |    3 +-
 include/plural-exp.h                        |    8 ++
 include/sched.h                             |    1 +
 include/sys/resource.h                      |    1 +
 include/termios.h                           |    1 +
 inet/getnameinfo.c                          |    4 +-
 intl/hash-string.h                          |    3 +-
 intl/plural-exp.c                           |    2 +-
 misc/mntent_r.c                             |    1 +
 nscd/nscd_helper.c                          |    5 +
 posix/sched_setp.c                          |    1 +
 resource/setrlimit.c                        |    1 +
 stdlib/exit.h                               |    4 +-
 sysdeps/generic/ifreq.h                     |   12 ---
 sysdeps/mach/hurd/ifreq.h                   |   12 ---
 sysdeps/mach/hurd/setrlimit.c               |    1 +
 sysdeps/posix/getaddrinfo.c                 |    5 +-
 sysdeps/unix/bsd/tcgetattr.c                |    1 +
 sysdeps/unix/sysv/linux/getrlimit64.c       |    3 +-
 sysdeps/unix/sysv/linux/glob64.c            |    1 +
 sysdeps/unix/sysv/linux/posix_fadvise64.c   |    2 +
 sysdeps/unix/sysv/linux/posix_fallocate64.c |    2 +
 sysdeps/unix/sysv/linux/sched_setaffinity.c |    4 +
 sysdeps/unix/sysv/linux/setrlimit.c         |    1 +
 sysdeps/unix/sysv/linux/setrlimit64.c       |    3 +
 sysdeps/unix/sysv/linux/tcgetattr.c         |    1 +
 termios/tcgetattr.c                         |    1 +
 36 files changed, 204 insertions(+), 40 deletions(-)
 create mode 100644 include/idna.h
 create mode 100644 include/ifreq.h
 create mode 100644 include/plural-exp.h


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]