From: Roger Pau Monné Date: Thu, 7 Apr 2022 07:11:35 +0000 (+0200) Subject: tools/firmware: force -fcf-protection=none X-Git-Tag: xen-RELEASE-4.14.5~9 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=87faac2c5ea07ccf306f4d94ac0b41bca76f504b;p=xen.git tools/firmware: force -fcf-protection=none Do so right in firmware/Rules.mk, like it's done for other compiler flags. Fixes: 3667f7f8f7 ('x86: Introduce support for CET-IBT') Signed-off-by: Roger Pau Monné Reviewed-by: Anthony PERARD Acked-by: Andrew Cooper master commit: 7225f6e0cd3afd48b4d61c43dd8fead0f4c92193 master date: 2022-04-04 12:30:00 +0100 --- diff --git a/tools/firmware/Rules.mk b/tools/firmware/Rules.mk index 26bbddccd4..87a8c752bd 100644 --- a/tools/firmware/Rules.mk +++ b/tools/firmware/Rules.mk @@ -15,5 +15,7 @@ CFLAGS += -Werror $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS)) +$(call cc-option-add,CFLAGS,CC,-fcf-protection=none) + # Extra CFLAGS suitable for an embedded type of environment. CFLAGS += -fno-builtin -msoft-float