All of lore.kernel.org
 help / color / mirror / Atom feed
* [XTF PATCH] build: append -fno-pic to CFLAGS
@ 2017-07-31 17:20 Wei Liu
  2017-07-31 17:38 ` Andrew Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Liu @ 2017-07-31 17:20 UTC (permalink / raw)
  To: Xen-devel; +Cc: Andrew Cooper, 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 <wei.liu2@citrix.com>
---
 build/common.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/build/common.mk b/build/common.mk
index f1de800..4ce6abf 100644
--- a/build/common.mk
+++ b/build/common.mk
@@ -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
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [XTF PATCH] build: append -fno-pic to CFLAGS
  2017-07-31 17:20 [XTF PATCH] build: append -fno-pic to CFLAGS Wei Liu
@ 2017-07-31 17:38 ` Andrew Cooper
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cooper @ 2017-07-31 17:38 UTC (permalink / raw)
  To: Wei Liu, Xen-devel

On 31/07/17 18:20, Wei Liu wrote:
> 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 and committed.  Thanks.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-31 17:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-31 17:20 [XTF PATCH] build: append -fno-pic to CFLAGS Wei Liu
2017-07-31 17:38 ` Andrew Cooper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.