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.22-96-g33c898d


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  33c898d1607c1b8dac69c76eec289980292ebfc2 (commit)
       via  7e58ab243de4a89c49eec1521970c2a05c9e4adc (commit)
      from  3552daa7ac08c8dd2fc59393fc57e0b4e7aec94e (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=33c898d1607c1b8dac69c76eec289980292ebfc2

commit 33c898d1607c1b8dac69c76eec289980292ebfc2
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Aug 19 04:40:35 2015 -0700

    Mark __xstatXX_conv as hidden
    
    __xstat_conv, __xstat64_conv and __xstat32_conv are internal to glibc.
    They should be marked as hidden so that they can't be called without
    PLT.
    
    	[BZ #18822]
    	* sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
    	attribute_hidden.
    	(__xstat64_conv): Likewise.
    	(__xstat32_conv): Likewise.

diff --git a/ChangeLog b/ChangeLog
index 592575b..83fef46 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,14 @@
 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
 
 	[BZ #18822]
+	* sysdeps/unix/sysv/linux/xstatconv.h (__xstat_conv): Add
+	attribute_hidden.
+	(__xstat64_conv): Likewise.
+	(__xstat32_conv): Likewise.
+
+2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
+
+	[BZ #18822]
 	* sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
 	Don't load %ebx when calling __setcontext.  Call __setcontext
 	with HIDDEN_JUMPTARGET.
diff --git a/sysdeps/unix/sysv/linux/xstatconv.h b/sysdeps/unix/sysv/linux/xstatconv.h
index 229e24c..d21d9a0 100644
--- a/sysdeps/unix/sysv/linux/xstatconv.h
+++ b/sysdeps/unix/sysv/linux/xstatconv.h
@@ -17,7 +17,10 @@
    <http://www.gnu.org/licenses/>.  */
 
 #ifndef STAT_IS_KERNEL_STAT
-extern int __xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf);
-extern int __xstat64_conv (int vers, struct kernel_stat *kbuf, void *ubuf);
+extern int __xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf)
+  attribute_hidden;
+extern int __xstat64_conv (int vers, struct kernel_stat *kbuf, void *ubuf)
+  attribute_hidden;
 #endif
-extern int __xstat32_conv (int vers, struct stat64 *kbuf, struct stat *buf);
+extern int __xstat32_conv (int vers, struct stat64 *kbuf, struct stat *buf)
+  attribute_hidden;

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

commit 7e58ab243de4a89c49eec1521970c2a05c9e4adc
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Aug 19 04:39:47 2015 -0700

    Call __setcontext with HIDDEN_JUMPTARGET
    
    i386 __makecontext should call __setcontext with HIDDEN_JUMPTARGET.
    
    	[BZ #18822]
    	* sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
    	Don't load %ebx when calling __setcontext.  Call __setcontext
    	with HIDDEN_JUMPTARGET.
    	* sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
    	libc_hidden_def.

diff --git a/ChangeLog b/ChangeLog
index 5f9e4f7..592575b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
 
+	[BZ #18822]
+	* sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
+	Don't load %ebx when calling __setcontext.  Call __setcontext
+	with HIDDEN_JUMPTARGET.
+	* sysdeps/unix/sysv/linux/i386/setcontext.S (__setcontext): Add
+	libc_hidden_def.
+
+2015-08-19  H.J. Lu  <hongjiu.lu@intel.com>
+
 	* sysdeps/i386/i686/Makefile
 	[$(subdir) == string] (sysdep_routines): Moved to ...
 	* sysdeps/i386/Makefile: Here.
diff --git a/sysdeps/unix/sysv/linux/i386/makecontext.S b/sysdeps/unix/sysv/linux/i386/makecontext.S
index bcf8de6..fd1abf8 100644
--- a/sysdeps/unix/sysv/linux/i386/makecontext.S
+++ b/sysdeps/unix/sysv/linux/i386/makecontext.S
@@ -102,15 +102,10 @@ L(exitcode):
 	   parameters (see above).  */
 	leal	(%esp,%ebx,4), %esp
 
-#ifdef	PIC
-	call	1f
-1:	popl	%ebx
-	addl	$_GLOBAL_OFFSET_TABLE_+[.-1b], %ebx
-#endif
 	cmpl	$0, (%esp)		/* Check the next context.  */
 	je	2f			/* If it is zero exit.  */
 
-	call	JUMPTARGET(__setcontext)
+	call	HIDDEN_JUMPTARGET(__setcontext)
 	/* If this returns (which can happen if the syscall fails) we'll
 	   exit the program with the return error value (-1).  */
 
diff --git a/sysdeps/unix/sysv/linux/i386/setcontext.S b/sysdeps/unix/sysv/linux/i386/setcontext.S
index 13609b0..75b4447 100644
--- a/sysdeps/unix/sysv/linux/i386/setcontext.S
+++ b/sysdeps/unix/sysv/linux/i386/setcontext.S
@@ -91,5 +91,6 @@ ENTRY(__setcontext)
 
 	ret
 PSEUDO_END(__setcontext)
+libc_hidden_def (__setcontext)
 
 weak_alias (__setcontext, setcontext)

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

Summary of changes:
 ChangeLog                                  |   17 +++++++++++++++++
 sysdeps/unix/sysv/linux/i386/makecontext.S |    7 +------
 sysdeps/unix/sysv/linux/i386/setcontext.S  |    1 +
 sysdeps/unix/sysv/linux/xstatconv.h        |    9 ++++++---
 4 files changed, 25 insertions(+), 9 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]