gcc/libitm/config
H.J. Lu ffc2fc06e3 x86: Update __CET__ check
__CET__ has been changed by revision 259522:

commit d59cfa9a4064339cf2bd2da828c4c133f13e57f0
Author: hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Fri Apr 20 13:30:13 2018 +0000

    Define __CET__ for -fcf-protection and remove -mibt

to

    (__CET__ & 1) != 0: -fcf-protection=branch or -fcf-protection=full
    (__CET__ & 2) != 0: -fcf-protection=return or -fcf-protection=full

We should check (__CET__ & 2) != 0 for shadow stack.

libgcc/

	* config/i386/linux-unwind.h: Add (__CET__ & 2) != 0 check
	when including "config/i386/shadow-stack-unwind.h".

libitm/

	* config/x86/sjlj.S (_ITM_beginTransaction): Add
	(__CET__ & 2) != 0 check for shadow stack.
	(GTM_longjmp): Likewise.

From-SVN: r259621
2018-04-24 15:15:51 -07:00
..
aarch64 Update copyright years. 2018-01-03 11:03:58 +01:00
alpha Update copyright years. 2018-01-03 11:03:58 +01:00
arm Update copyright years. 2018-01-03 11:03:58 +01:00
generic Update copyright years. 2018-01-03 11:03:58 +01:00
linux Update copyright years. 2018-01-03 11:03:58 +01:00
posix Update copyright years. 2018-01-03 11:03:58 +01:00
powerpc Update copyright years. 2018-01-03 11:03:58 +01:00
s390 Update copyright years. 2018-01-03 11:03:58 +01:00
sh Update copyright years. 2018-01-03 11:03:58 +01:00
sparc Update copyright years. 2018-01-03 11:03:58 +01:00
x86 x86: Update __CET__ check 2018-04-24 15:15:51 -07:00