summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2018-04-24 22:12:46 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2018-04-24 15:12:46 -0700
commite59133c36c1733ccce20e21b4358418f450f23ee (patch)
tree7d621c10805b2d815c54974c8926d20571c5ead0 /config
parent0603375cbcdd81ce7eef925a3cfd4fdc297b50f7 (diff)
x86/CET: Add -fcf-protection to STAGE4_CFLAGS
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
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog5
-rw-r--r--config/bootstrap-cet.mk3
2 files changed, 7 insertions, 1 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index d978f41f4be..aa63efdc0ec 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,5 +1,10 @@
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
* bootstrap-cet.mk (STAGE2_CFLAGS): Remove -mcet.
(STAGE3_CFLAGS): Likewise.
diff --git a/config/bootstrap-cet.mk b/config/bootstrap-cet.mk
index b5dee601a3f..6ef1ba279cd 100644
--- a/config/bootstrap-cet.mk
+++ b/config/bootstrap-cet.mk
@@ -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