Add -fcf-protection -mcet to STAGE4_CFLAGS

Message ID 20180404225041.GA29835@intel.com
State New
Headers show
Series
  • Add -fcf-protection -mcet to STAGE4_CFLAGS
Related show

Commit Message

H.J. Lu April 4, 2018, 10:50 p.m.
Since profiledbootstrap uses

STAGEfeedback_CFLAGS = $(STAGE4_CFLAGS) -fprofile-use

add

STAGE4_CFLAGS += -fcf-protection -mcet

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

OK for trunk?


H.J.
---
---
 config/bootstrap-cet.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.14.3

Patch

diff --git a/config/bootstrap-cet.mk b/config/bootstrap-cet.mk
index f09193a6dea..30e99f22fac 100644
--- a/config/bootstrap-cet.mk
+++ b/config/bootstrap-cet.mk
@@ -1,4 +1,5 @@ 
-# This option enables -fcf-protection -mcet for stage2 and stage3.
+# This option enables -fcf-protection -mcet for stage2, stage3 and stage4.
 
 STAGE2_CFLAGS += -fcf-protection -mcet
 STAGE3_CFLAGS += -fcf-protection -mcet
+STAGE4_CFLAGS += -fcf-protection -mcet