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.27.9000-579-g124bcde


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  124bcde683d5d8b5c26bd2f535edcf3b7ab6108c (commit)
      from  9145f0333d11683cb3d796246d1395c84b4a3516 (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=124bcde683d5d8b5c26bd2f535edcf3b7ab6108c

commit 124bcde683d5d8b5c26bd2f535edcf3b7ab6108c
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Tue Jul 17 16:04:41 2018 -0700

    x86: Add _CET_ENDBR to functions in crti.S
    
    Add _CET_ENDBR to functions in crti.S, which are called indirectly, to
    support IBT.
    
    Tested on i686 and x86-64.
    
    Reviewed-by: Carlos O'Donell <carlos@redhat.com>
    
    	* sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
    	(_fini): Likewise.
    	* sysdeps/x86_64/crti.S (_init): Likewise.
    	(_fini): Likewise.

diff --git a/ChangeLog b/ChangeLog
index 694d10f..59ed8bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2018-07-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
+	(_fini): Likewise.
+	* sysdeps/x86_64/crti.S (_init): Likewise.
+	(_fini): Likewise.
+
 2018-07-17  Rafal Luzynski  <digitalfreak@lingonborough.com>
 
 	[BZ #23140]
diff --git a/sysdeps/i386/crti.S b/sysdeps/i386/crti.S
index ffbc92c..65ddc1c 100644
--- a/sysdeps/i386/crti.S
+++ b/sysdeps/i386/crti.S
@@ -61,6 +61,7 @@
 	.hidden	_init
 	.type _init, @function
 _init:
+	_CET_ENDBR
 	pushl %ebx
 	/* Maintain 16-byte stack alignment for called functions.  */
 	subl $8, %esp
@@ -81,6 +82,7 @@ _init:
 	.hidden	_fini
 	.type _fini, @function
 _fini:
+	_CET_ENDBR
 	pushl %ebx
 	subl $8, %esp
 	LOAD_PIC_REG (bx)
diff --git a/sysdeps/x86_64/crti.S b/sysdeps/x86_64/crti.S
index f26915e..067ac14 100644
--- a/sysdeps/x86_64/crti.S
+++ b/sysdeps/x86_64/crti.S
@@ -61,6 +61,7 @@
 	.hidden	_init
 	.type _init, @function
 _init:
+	_CET_ENDBR
 	/* Maintain 16-byte stack alignment for called functions.  */
 	subq $8, %rsp
 #if PREINIT_FUNCTION_WEAK
@@ -79,4 +80,5 @@ _init:
 	.hidden	_fini
 	.type _fini, @function
 _fini:
+	_CET_ENDBR
 	subq $8, %rsp

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

Summary of changes:
 ChangeLog             |    7 +++++++
 sysdeps/i386/crti.S   |    2 ++
 sysdeps/x86_64/crti.S |    2 ++
 3 files changed, 11 insertions(+), 0 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]