tools/firmware: force -fcf-protection=none
authorRoger Pau Monné <roger.pau@citrix.com>
Wed, 6 Apr 2022 08:20:23 +0000 (10:20 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 6 Apr 2022 08:20:23 +0000 (10:20 +0200)
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é <roger.pau@citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 7225f6e0cd3afd48b4d61c43dd8fead0f4c92193
master date: 2022-04-04 12:30:00 +0100

tools/firmware/Rules.mk

index 9f78a7dec9750dab8f129b44e1d35112a9ca2803..c227fe25244a989a11f1a9ec7253ab0d0a514bdf 100644 (file)
@@ -15,6 +15,8 @@ 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 += -ffreestanding -msoft-float