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)
commite59133c36c1733ccce20e21b4358418f450f23ee
tree7d621c10805b2d815c54974c8926d20571c5ead0
parent0603375cbcdd81ce7eef925a3cfd4fdc297b50f7
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
config/ChangeLog
config/bootstrap-cet.mk