[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [TOOLS] USe -mno-direct-seg-refs when building on i386.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Node ID c6f637694b85cb250e194e94e8d4e65be8f4d8e4
# Parent  bc3ff220d24d083f8ff170969cc4eeed5fdb428f
[TOOLS] USe -mno-direct-seg-refs when building on i386.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/Rules.mk |    4 ++++
 1 files changed, 4 insertions(+)

diff -r bc3ff220d24d -r c6f637694b85 tools/Rules.mk
--- a/tools/Rules.mk    Fri Dec 15 11:50:04 2006 +0000
+++ b/tools/Rules.mk    Fri Dec 15 11:53:45 2006 +0000
@@ -18,6 +18,10 @@ CFLAGS  += $(shell getconf LFS_CFLAGS)
 CFLAGS  += $(shell getconf LFS_CFLAGS)
 CFLAGS  += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
 LDFLAGS += $(shell getconf LFS_LDFLAGS)
+
+# 32-bit x86 does not perform well with -ve segment accesses on Xen.
+CFLAGS-$(CONFIG_X86_32) += $(call cc-option,$(CC),-mno-tls-direct-seg-refs)
+CFLAGS += $(CFLAGS-y)
 
 %.opic: %.c
        $(CC) $(CPPFLAGS) -DPIC $(CFLAGS) -fPIC -c -o $@ $<

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.