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/pr18822 updated. glibc-2.26-210-gcdd7907


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/pr18822 has been updated
       via  cdd7907733b81a7cfb1800b5d4560e667f6e76e1 (commit)
       via  517dd8b6cb0d8b1bc6cc5b8e8bb2bf451dbfeb52 (commit)
       via  1c3f309b8083aba98b546c5c6df9ef361625e260 (commit)
      from  450faea0b7d7dff1d755cd0275fe41c5d7bb7913 (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=cdd7907733b81a7cfb1800b5d4560e667f6e76e1

commit cdd7907733b81a7cfb1800b5d4560e667f6e76e1
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Aug 22 06:42:46 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/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=517dd8b6cb0d8b1bc6cc5b8e8bb2bf451dbfeb52

commit 517dd8b6cb0d8b1bc6cc5b8e8bb2bf451dbfeb52
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Aug 22 06:41:49 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/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=1c3f309b8083aba98b546c5c6df9ef361625e260

commit 1c3f309b8083aba98b546c5c6df9ef361625e260
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Aug 22 06:25:16 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/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)

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

Summary of changes:
 include/monetary.h                    |    3 ++-
 include/sched.h                       |    1 +
 include/sys/resource.h                |    1 +
 posix/sched_setp.c                    |    1 +
 resource/setrlimit.c                  |    1 +
 sysdeps/mach/hurd/setrlimit.c         |    1 +
 sysdeps/unix/sysv/linux/setrlimit.c   |    1 +
 sysdeps/unix/sysv/linux/setrlimit64.c |    3 +++
 8 files changed, 11 insertions(+), 1 deletions(-)


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]