r259621 - in /trunk: libgcc/ChangeLog libgcc/co...
hjl@gcc.gnu.org
hjl@gcc.gnu.org
Tue Apr 24 22:15:00 GMT 2018
Author: hjl
Date: Tue Apr 24 22:15:51 2018
New Revision: 259621
URL: https://gcc.gnu.org/viewcvs?rev=259621&root=gcc&view=rev
Log:
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.
Modified:
trunk/libgcc/ChangeLog
trunk/libgcc/config/i386/linux-unwind.h
trunk/libitm/ChangeLog
trunk/libitm/config/x86/sjlj.S
More information about the Gcc-cvs
mailing list