From: Wei Liu Date: Mon, 31 Jul 2017 17:20:57 +0000 (+0100) Subject: build: append -fno-pic to CFLAGS X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c5be5f2f71d5bebb89c79bbcc5469445ee327b38;p=people%2Fandrewcoop%2Fxen-test-framework.git 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 --- 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