Disable fcf-protection flag 12/273412/1
authorvarinder.p <varinder.p@samsung.com>
Mon, 4 Apr 2022 05:36:44 +0000 (11:06 +0530)
committerVarinder Pratap Singh <varinder.p@samsung.com>
Tue, 5 Apr 2022 08:30:09 +0000 (14:00 +0530)
Change-Id: I9ca32afc278d26237947e75c2c68038bd436647d
Signed-off-by: varinder.p <varinder.p@samsung.com>
pc-bios/optionrom/Makefile

index 542bb6bf8731ba72b3b3af48109295668ba77c38..6fde2bfe3585235e038ae4bb915444467495c443 100644 (file)
@@ -13,7 +13,7 @@ $(call set-vpath, $(SRC_PATH)/pc-bios/optionrom)
 ifeq ($(lastword $(filter -O%, -O0 $(CFLAGS))),-O0)
 override CFLAGS += -O2
 endif
-override CFLAGS += -march=i486 -fcf-protection=none
+override CFLAGS += -march=i486 #-fcf-protection=none #Enable this flag for ubuntu impish or higher gcc version
 
 # Drop -fstack-protector and the like
 QEMU_CFLAGS := $(filter -W%, $(QEMU_CFLAGS)) $(CFLAGS_NOPIE) -ffreestanding