From c5be5f2f71d5bebb89c79bbcc5469445ee327b38 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Mon, 31 Jul 2017 18:20:57 +0100 Subject: [PATCH] build: append -fno-pic to CFLAGS It appears that Stretch's gcc has this on by default, which causes the generating of several get_pc_thunk's, which breaks xsa-192 test. Signed-off-by: Wei Liu Reviewed-by: Andrew Cooper --- build/common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/common.mk b/build/common.mk index f1de800..b786ddf 100644 --- a/build/common.mk +++ b/build/common.mk @@ -25,7 +25,7 @@ COMMON_AFLAGS := $(COMMON_FLAGS) -D__ASSEMBLY__ COMMON_CFLAGS := $(COMMON_FLAGS) $(COMMON_CFLAGS-y) COMMON_CFLAGS += -Wall -Wextra -Werror -std=gnu99 -Wstrict-prototypes -O3 -g COMMON_CFLAGS += -fno-common -fno-asynchronous-unwind-tables -fno-strict-aliasing -COMMON_CFLAGS += -fno-stack-protector -ffreestanding +COMMON_CFLAGS += -fno-stack-protector -fno-pic -ffreestanding COMMON_CFLAGS += -mno-red-zone -mno-sse COMMON_CFLAGS += -Wno-unused-parameter -Winline -- 2.39.5