From 5d19962d733624c0c17f199b804736d2be92ba35 Mon Sep 17 00:00:00 2001 From: Tianhua Sun Date: Tue, 4 Dec 2018 15:05:40 +0800 Subject: [PATCH] security: remove cflag _FORTIFY_SOURCE in hypervisor _FORTIFY_SOURCE is a Glibc feature which adds memory and string function protection, this flag is only for Glibc. The _FORTIFY_SOURCE is not used by hypervisor because hypervisor is not include Glibc. Tracked-On: #1122 Signed-off-by: Tianhua Sun Acked-by: Anthony Xu --- hypervisor/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/hypervisor/Makefile b/hypervisor/Makefile index 9c6b21f0b..455147775 100644 --- a/hypervisor/Makefile +++ b/hypervisor/Makefile @@ -51,7 +51,6 @@ CFLAGS += -fsigned-char CFLAGS += -m64 -mno-mmx -mno-sse -mno-sse2 -mno-80387 -mno-fp-ret-in-387 CFLAGS += -mno-red-zone CFLAGS += -nostdinc -nostdlib -fno-common -CFLAGS += -O2 -D_FORTIFY_SOURCE=2 CFLAGS += -Wformat -Wformat-security -Werror ifeq (y, $(CONFIG_RELOC)) CFLAGS += -fpie