]> xenbits.xensource.com Git - people/andrewcoop/xen-test-framework.git/commitdiff
build: append -fno-pic to CFLAGS
authorWei Liu <Wei.Liu2@citrix.com>
Mon, 31 Jul 2017 17:20:57 +0000 (18:20 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 31 Jul 2017 17:33:23 +0000 (18:33 +0100)
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 <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
build/common.mk

index f1de8000f59fd359228bd788c897b7e83bcdebf5..b786ddf5487b8a9f712fb32316e7727bb802127c 100644 (file)
@@ -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