build: append -fno-pic to CFLAGS
PATCH 1/1 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 <[email protected]>
--- build/common.mk | 1 + 1 file changed, 1 insertion(+)
build/common.mk +1 -0
@@ -28,6 +28,7 @@ COMMON_CFLAGS += -fno-common -fno-asynchronous-unwind-tables -fno-strict-aliasin COMMON_CFLAGS += -fno-stack-protector -ffreestanding COMMON_CFLAGS += -mno-red-zone -mno-sse COMMON_CFLAGS += -Wno-unused-parameter -Winline +COMMON_CFLAGS += -fno-pic COMMON_AFLAGS-x86_32 := -m32 COMMON_AFLAGS-x86_64 := -m64
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 4 lines · Wei Liu
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 <[email protected]>
Reviewed and committed. Thanks.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel