x86/CET: Add -fcf-protection to STAGE4_CFLAGS
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 24 Apr 2018 22:12:46 +0000 (22:12 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 24 Apr 2018 22:12:46 +0000 (15:12 -0700)
Since profiledbootstrap uses

STAGEfeedback_CFLAGS = $(STAGE4_CFLAGS) -fprofile-use

add

STAGE4_CFLAGS += -fcf-protection -mcet

to bootstrap-cet.mk to support profiledbootstrap with CET.

PR bootstrap/85490
* bootstrap-cet.mk (STAGE4_CFLAGS): New.

From-SVN: r259620

config/ChangeLog
config/bootstrap-cet.mk

index d978f41f4bede5998f44cd8e78eb885e86786098..aa63efdc0ec76a2b682b24045d9c824484d511f8 100644 (file)
@@ -1,3 +1,8 @@
+2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR bootstrap/85490
+       * bootstrap-cet.mk (STAGE4_CFLAGS): New.
+
 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR target/85485
index b5dee601a3f692a3ebc85160f08cebd7db6f3671..6ef1ba279cd4429626d0e92d52640cb77fc3bbdb 100644 (file)
@@ -1,4 +1,5 @@
-# This option enables -fcf-protection for stage2 and stage3.
+# This option enables -fcf-protection for stage2, stage3 and stage4.
 
 STAGE2_CFLAGS += -fcf-protection
 STAGE3_CFLAGS += -fcf-protection
+STAGE4_CFLAGS += -fcf-protection